Dice Rolling Simulator in python | Python Projects Fpr Beginners | random module in python
Dice Rolling Simulator | Python Projects Fpr Beginners | random module in python
Note : Recplace (greater than) and (less than) with their sign/symbol ( Because Youtube donot allow angle brackets in description ) OR You can get this code on github by using github link
Code github Link : https://github.com/ubaidahmadceh/python_projects/blob/main/Dice_Rolling_Simulator.py
code :
from random import randint
while True:
user_input = int(input("Enter '1' to roll a dice\nOR '2' to quit : \n"))
rolled_dice_number = randint(1,6)
if user_input == 1:
print("Rolled Dice Number is :", rolled_dice_number)
elif user_input == 2:
break
else:
print("Please Enter '1' OR '2'")
print("Thankyou for playing")
dice rolling simulator python project,dice roll game python,learn python,projects for beginners in python,dice roll game,dice roll,why python,python,python task,python projects,python tutorial,random number generator,python programming,python full course,python projects for beginners,python tutorial for beginners,programming,dice