Python: While Loops (Reading User Input Indefinitely?!!)

Publié le: 21 octobre 2021
sur la chaîne: Afternerd
13,561
185

In this video in the Python tutorial for beginners, I am going to teach you all you need to know about While Loops in Python by going through an example where a user has to interactively enter multiple numbers indefinitely, and we only stop when the input is a negative number.

I will discuss why we need while loops in programming, and the difference between For loops and While loops.

⏰ Timestamps:
00:00 | Introduction
00:15 | Brief summary of For loops
01:05 | When should you use a While loop
02:30 | While loop syntax in Python
06:23 | A simple While loop example
09:56 | An advanced While loop example
13:39 | Summary

Resources:
📝 Python Cheatsheet: https://www.afternerd.com/blog/get-py...
🖥️ Computer Science guide: https://www.afternerd.com/blog/learn-...
🐍 Python roadmap guide: https://www.afternerd.com/blog/learn-...

Courses:
📚 Python OOP: https://www.afternerd.com/udemy/pytho...

Where you can find me:
ℹ️ Website: https://www.afternerd.com/​
📸 Instagram:   / the_kreamix​  
🐦 Twitter:   / afternerdtweets  

#python #pythonforbeginners #pythontutorial #afternerd


Sur cette page du site, vous pouvez voir la vidéo en ligne Python: While Loops (Reading User Input Indefinitely?!!) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Afternerd 21 octobre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 13,561 fois et il a aimé 185 téléspectateurs. Bon visionnage!