0
Hello Everyone, I am having a lot of confusion in learning about WHILE LOOP in Python. Please help me out.
It gets even more confusing for me when loops come. Please explain in an easy manner. Rest I am able to understand but I know loop is an important topic related to python. So it's also necessary. Please if someone knows this, kiny explain.
5 ответов
+ 4
In a While loop, the loop stops running if its condition becomes false.
Try this
i = 0
while i<5:
print(i,True)
i += 1
print(i,False)
+ 5
Dikshant Sharma ,
you have joined sololearn just 1 day ago, you also did not really start learning from a tutorial.
if you like to know more about python, it is recommended to start with the *python for beginners* tutorial. also do some exercises for practicing.
in the tutorial you will learn all about loops in python, how to use them, and when to use *while loop* or *for loop*. please be patient, learning new things will take time.
happy coding and good success!
+ 3
Thanks Lothar for commenting! I am not new to Python, I have been learning Python since 6-8 Months from YouTube tutorials and from some courses. I know good Python but I always get stuck on While Loops. I recently found about this app Sololearn and downloaded this, this app is good and I have started to use it very often. This app has made my concepts easier but still I am a bit confused with loops But now I have watched a couple of videos and now I am quite familiar with this topic. Thanks for your consideration!! 🙏🏻
And Thanks Simba to you as well.. 👍🏻
Thanks @Lothar once again!
+ 2
explaining this code👆
It won't stop executing anything inside dat while block unless "I is greater than or equals to 5"
+ 1
Lothar Can you please tell me how to verify/activate my account so that i can send anyone message personally?