# try.py # Walker M. White (wmw2) # September 20, 2012 """Simple application to show off try-except""" if __name__ == '__main__': try: input = raw_input('Number: ') # get number from user x = float(input) # convert string to float print 'The next number is '+`x+1` except: print 'Hey! That is not a number!' print 'Program is done'