Advertisement
fr1sk

kockice.py

Jan 23rd, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. import random
  2.  
  3. #x = input()
  4. while 1:
  5.     x = random.randint(1,6)
  6.     print(x)
  7.     while 1:
  8.         print ("da li zelite da bacate ponovo? (da/ne)")
  9.         temp = raw_input()
  10.         if temp in ["da", "DA"]:
  11.             break
  12.         elif temp in ["ne", "NE"]:
  13.             exit(1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement