Advertisement
rfmonk

fixed print action newlineX2 print

Apr 6th, 2012
94
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('')
  9.         print('')
  10.         print('Try a number')
  11.     else:
  12.         print(int(reply) ** 2)
  13. print('Bye')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement