Hello Roland,
First of all, sorry about the typo, lol. But I think that it isn't running because when I clicked "run", the code it wouldn't do anything.
When you said that the code could have an an endless loop, I couldn't find it (I'm new to this) this is the code.
Items = ""
Total = 0
def adding_report(report):
while True:
X = input("please input integer to add or Q to quit")
if X.isdigit() == "True":
X = int(X)
Total = Total + X
if report == "A":
Items = Items + X
elif X == "Q":
print("Your result is")
if report == "A":
print("Items")
print(Items)
print("total")
print(Total)
break
else:
print("invalid input.")
adding_report("T")
It's supposed to do addition. (It's for a project for an online class.) Can you tell me where the infinite loop is please?