strValue = viz.input('Enter a number:') try: intValue = int(strValue) print intValue except ValueError: print 'You did not enter a valid number'