I've researched this problem but can't find a solution. As far as I know, my break statement is in my while loop, but I still get the Syntax error.
entered_number = 1
while entered_number >=0 :
entered_number = int(input ("Number to add :"))
sum += entered_number
print("Entered number :",entered_number,"\nSum up til now:", sum)
else:
print("The Final sum is :", sum)
break
I know another solution to make my code work, but don't understand why this does not?
Thank you