I'm trying to create a program that takes a number and sums it But for some reason the code wont work
number = input("please enter a four digit number: ")
final = sum(number)
print(final)
TypeError: unsupported operand type(s) for +: 'int' and 'str'
I've attempted to convert it into a integer and string but it keeps saying that each of them is irritable
What am I doing wrong?