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

Published: 21 October 2021
on channel: 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


On this page of the site you can watch the video online Python: While Loops (Reading User Input Indefinitely?!!) with a duration of hours minute second in good quality, which was uploaded by the user Afternerd 21 October 2021, share the link with friends and acquaintances, this video has already been watched 13,561 times on youtube and it was liked by 185 viewers. Enjoy your viewing!