0
Why the output is 65?? not 55?? please explain
current = 1 total = 0 while current <= 10: current += 1 total += current print(total)
4 Answers
+ 1
It never reaches 55 as I already explained before it's 54 ,now current is 10 so it checks while current<=10 which is true
So current=current+1
=10+1
=11
Total=54+11
=65
+ 1
Thanks now you made the things clear!! can i get your whatsapp or insta id?? i need someone to guide me!! Btw thanks abhay!!
+ 1
Wlc ,I can't give ,if you have any questions you can ask here ,many ppl can look at the problem and solve your queries :-)
0
ummđ„ fyn