Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # https://pastebin.com/u/TTpocToXaKep
- num_guessed = int(input('Guess the number from 1 to 6: '))
- import random
- num_rolled = random.randint(1, 6)
- if num_guessed == num_rolled:
- print('You guessed it! It was', num_rolled)
- else:
- print('Wrong guess. The number was', num_rolled)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement