Mar-21-2017, 09:20 PM
>>> sequence = int(input("gimme some numbers! ")) gimme some numbers! 2345 3532 3432 4,345 123 Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: invalid literal for int() with base 10: '2345 3532 3432 4,345 123'Ok, so you can't call int() on a sequence of numbers. So either int(input()) is not what you want, or you want to do it over and over and only ask for one number at a time.