Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # b_getch_yn.py
- import random
- import msvcrt
- d = ''
- while d != 'n' and d!= 'N':
- c = random.randint(1000,9999)
- print c
- print('Generate Another Random Number? (y/n): ')
- d = msvcrt.getch()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement