clear me | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

clear me

i=1 while i<7: print(i) i=i+2 print("program done") /** when i=1 ,,it prints 1 ..but we have give a condition i=i+1: so we should have the answer as 2 not 1 ..why we get 1 not as 2..

21st Jul 2017, 2:08 AM
Darwin
Darwin - avatar
2 Answers
0
Then why we have the statement I=I+1 in our code
21st Jul 2017, 2:23 AM
Darwin
Darwin - avatar
0
I=i +1
21st Jul 2017, 2:23 AM
Darwin
Darwin - avatar