Advertisement
rfmonk

updated print action print

Apr 6th, 2012
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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('Try a number')
  9.     else:
  10.         print(int(reply) ** 2)
  11. print('Bye')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement