Dice Simulator

Lets Build a Dice Simulator


In this chapter, we will build a dice simulator.

import random
random_number = random.randint(1, 6)
our_guess = int(input("Guess a number between 1 and 6: "))
if our_guess == random_number:
    print("Your Guess is Correct! Congratulations")
else:
    print("Your Guess is Incorrect! The number is %d. Try Again" %(random_number))