# counter
my_list = input("Input your list.(Numbers)\n")
while my_list.isnumeric() == False:
print("\n----------------------------------------------------")
print("***Sorry, what you had entered contained a letter.***")
print("----------------------------------------------------\n")
my_list = input("Input your list.(Numbers)\n")
else:
counter = 0
for item in my_list:
counter_item = counter + item
print(int(counter_item))
The exact error message is
"Traceback (most recent call last):
File "main.py", line 13, in <module>
counter_item = counter + item enter code here
TypeError: unsupported operand type(s) for +: 'int' and 'str'"
What should I do?
P.S (This is in Python3 on Repl.it)