rfmonk

print action print

Apr 6th, 2012
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  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(\n\n'Try a number') # i want to print after I draw a line
  9.     else:
  10.         print(int(reply) ** 2)
  11. print('Bye')
Advertisement
Add Comment
Please, Sign In to add comment