Not sure when to use the while loop vs for loop? In this video we will discuss how and when to use the while loop.
This series does not assume you have any prior programming knowledge.
If you are joining us in the middle of this series, the series was designed to be taken step by step. So remember to check out our playlist for the series to find all the videos.
RESOURCES AND LINKS MENTIONED IN THIS VIDEO:
Sign up for my FREE Insider’s Newsletter for More Tips and Insights: https://www.nelsonlim.com/learn/
More on While Loops:
https://wiki.python.org/moin/WhileLoop
Python for the Anxious Artist Series Playlist: https://www.youtube.com/playlist?list=PLjdX5s0F2DqZYcjKn2QIlNKorQ2E3Lws5
EXERCISE
Modify the example in the video, so that the program will quit when the user inputs “q” or “quit” in either lower or uppercase. See if you can do this without using an else
or elif
Say Hi on Social
Instagram: https://www.instagram.com/iamnelsonlim
Twitter: https://twitter.com/iamnelsonlim
NOTE: This article may contain affiliate links that allow you find the items mentioned in this video at no cost to you. This channel may earn a small commissions when the viewer uses the links, but viewers are not obligated to use these links. Thank for your support!
Leave a Reply