myName = input('Name: ') try: myAge = int(input('Age: ')) except: print 'Invalid age, please enter a number'