I want to specify my list type by pressing -1 then I want to add numbers to the numbers list then I want to add those numbers up when I press "F"
For some reason it doesn't listen to me and adds F to the list which gives me an error
thank you in advance.
numbers =[]
ListType = int(input())
if ListType < 0:
while True :
if input()!= "F":
value = input()
numbers.append(value)
else:
print(sum(numbers))
ifstatement. I'm guessing you would move it backwards, but please clarify it