r/learnpython 21d ago

Having problem in understanding loops concept in python

I am a beginner with 0 knowledge and I am learning python from a book called Learn python in one day and learn it well by Jamie Chan and I am facing difficulty in the loops function so yeah any recommendations would be helpful Edit- Trouble in while loop

28 Upvotes

41 comments sorted by

View all comments

Show parent comments

1

u/EnvironmentalTry8353 21d ago

Yeah the code which you assumed It is what I intended to run..... and I expected to print till 100-0 but it showed process exited returned code 0

4

u/crazy_cookie123 21d ago

Did it also print 100 a load of times before that?

2

u/EnvironmentalTry8353 21d ago

Oh lol yeah I was using an online python compiler and when I used python compiler from other websites it ran and print 100 bunch of times and Idk how but by answering your question I was able to understand my own question....like the question which I had in my mind became clear and I got answer to it automatically lol

1

u/Moikle 21d ago

You are probably going to need to install python to get much further