Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import sys
- import time
- import random
- randnumber = 0
- reply = ''
- def start() :
- print random.randint(1, 6);
- while True:
- reply = str(raw_input("Run again?"+' (y/n): ')).lower().strip()
- if reply[0] == 'y':
- start()
- if reply[0] == 'n':
- sys.exit()
- else:
- break
- return
- start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement