SHOW:
|
|
- or go back to the newest paste.
1 | while True: | |
2 | reply = raw_input('Enter text:') | |
3 | if reply == 'stop': break | |
4 | try: | |
5 | num = int(reply) | |
6 | except: | |
7 | print('='*75) | |
8 | print('') | |
9 | print('') | |
10 | print('Try a number') | |
11 | else: | |
12 | print(int(reply) ** 2) | |
13 | print('Bye') |