Posts by Vivian Junqueira • 1 point
2 posts
-
0
votes1
answer195
viewsQ: Sentence while - not true... understanding logic
I’m having a lot of trouble understanding why the program stops when I type n=0. when type 0 the finished turns to True, and the while logic is just this, no? I’ve run the program and it’s correct,…
-
-1
votes3
answers145
viewsQ: Same codes, different outputs
Why in the code x = 1 while (x < 4): x = x + 1 print ("x vale", x) has only one output 4, and in i = 6 while (i > 0): i = i - 3 print (i) The way out is different.…