r/pythonhelp • u/helpneed123 • Sep 24 '21
I cannot understand this basic code
i=0
while i < 6:
i += 1
if i == 3 :
continue
print(i)
I know the answer is 6, but how?
It says it is adding the i value by 1.
Also, why is the third line important
Please help. I am trying to study for my exam
2
Upvotes
3
u/Goobyalus Sep 24 '21