try: num = float(raw_input("Enter a number: "))except: print "Something went wrong!"try: num = float(raw_input("nEnter a number: "))except(ValueError): print "That was not a number!"try: num = float(raw_input("nEnter a number: "))except(ValueError): print "That was not a number!"else: print "You entered the number", num
Name (required)
email (will not be published) (required)
Website