Advertisement
KodingKid

Python basic dice roll - Basic Scripting #33

Jun 30th, 2021
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. import random
  2. print("Roll or no?")
  3. min = 0
  4. max = 10
  5. roll = input()
  6. if roll == "yes" or "Yes" then:
  7.     print(random.randint(min, max))
  8.     print(random.randint(min, max))
  9. if roll == "no" or "No" then:
  10.     break
  11. if else:
  12.     print("Sorry, I don't understand that.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement