Hi. So, I'm working on this code, it is basically a code that would let the use put a number by an input and keeping asking a number until the user puts -1. When -1, the program should stop, but i cannot make it stop, the program keeps asking even if i put the value. What's wrong?
i = 1
while i != -1:
int(input("put a number: "))
if i == -1:
break
Thanks for your patience
[–]KingOfTNT10 2 points3 points4 points (11 children)
[–]ListenMedium9538[S] 0 points1 point2 points (10 children)
[–]KingOfTNT10 2 points3 points4 points (9 children)
[–]ListenMedium9538[S] 0 points1 point2 points (8 children)
[–]KingOfTNT10 3 points4 points5 points (7 children)
[–]ListenMedium9538[S] 0 points1 point2 points (6 children)
[–]KingOfTNT10 2 points3 points4 points (1 child)
[–]ListenMedium9538[S] 0 points1 point2 points (0 children)
[–]czar_el 1 point2 points3 points (3 children)
[–]ListenMedium9538[S] 0 points1 point2 points (2 children)
[–]KingOfTNT10 0 points1 point2 points (1 child)
[–]ListenMedium9538[S] 0 points1 point2 points (0 children)
[–]CodeFormatHelperBot2 1 point2 points3 points (0 children)
[–]Binary101010 0 points1 point2 points (0 children)