I'm a beginner in python but i have some knowledge with C++, My Problem is that I'm trying to get the sum of all the Values given by the user but i get this error 'int' object is not iterable so can someone help me please Here is my code
Food= int(input("Enter number of Food: "))
for x in range(Food):
Foodn = str(input("Enter Food Name: "))
Value = int(input("Enter Value: ))
The above code works
#--Getting the Sum of all Value
for j in Value:
j += Value
print(j)