Khan Academy | while loops | Intro to CS - Python | Khan Academy @khanacademy | Uploaded June 2024 | Updated October 2024, 6 days ago.
Learn how to use while loops to repeat execution of a block of code. Trace how a loop variable updates inside of the loop body to eventually terminate the loop. View the program used in this video at: khanacademy.org/python-program/while-loops/5530881121239040
Courses on Khan Academy are always 100% free. Start practicing—and saving your progress—now with our Intro to Computer Science - Python course!
Course link: khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:simulating-phenomena-with-loops
Course playlist: youtube.com/playlist?list=PLSQl0a2vh4HDkbhG0sDW0b-VZXykEIAe5
Khan Academy is a nonprofit organization with the mission of providing a free, world-class education for anyone, anywhere. We offer quizzes, questions, instructional videos, and articles on a range of academic subjects, including math, biology, chemistry, physics, history, economics, finance, grammar, preschool learning, and more. We provide teachers with tools and data so they can help their students develop the skills, habits, and mindsets for success in school and beyond. Khan Academy has been translated into dozens of languages, and 15 million people around the globe learn on Khan Academy every month. As a 501(c)(3) nonprofit organization, we would love your help!
Donate or volunteer today! Donate here: khanacademy.org/donate?utm_source=youtube&utm_medium=desc
Volunteer here: khanacademy.org/contribute?utm_source=youtube&utm_medium=desc
TIMESTAMPS:
00:00 - 00:16 : intro
00:17 - 01:11 : loop control flow diagram
01:12 - 01:51 : while loop syntax
01:52 - 02:36 : defining the loop condition
02:37 - 02:56 : initializing the loop variable
02:57 - 03:36 : infinite loops
03:37 - 04:29 : updating the loop variable
Learn how to use while loops to repeat execution of a block of code. Trace how a loop variable updates inside of the loop body to eventually terminate the loop. View the program used in this video at: khanacademy.org/python-program/while-loops/5530881121239040
Courses on Khan Academy are always 100% free. Start practicing—and saving your progress—now with our Intro to Computer Science - Python course!
Course link: khanacademy.org/computing/intro-to-python-fundamentals/x5279a44ae0ab15d6:simulating-phenomena-with-loops
Course playlist: youtube.com/playlist?list=PLSQl0a2vh4HDkbhG0sDW0b-VZXykEIAe5
Khan Academy is a nonprofit organization with the mission of providing a free, world-class education for anyone, anywhere. We offer quizzes, questions, instructional videos, and articles on a range of academic subjects, including math, biology, chemistry, physics, history, economics, finance, grammar, preschool learning, and more. We provide teachers with tools and data so they can help their students develop the skills, habits, and mindsets for success in school and beyond. Khan Academy has been translated into dozens of languages, and 15 million people around the globe learn on Khan Academy every month. As a 501(c)(3) nonprofit organization, we would love your help!
Donate or volunteer today! Donate here: khanacademy.org/donate?utm_source=youtube&utm_medium=desc
Volunteer here: khanacademy.org/contribute?utm_source=youtube&utm_medium=desc
TIMESTAMPS:
00:00 - 00:16 : intro
00:17 - 01:11 : loop control flow diagram
01:12 - 01:51 : while loop syntax
01:52 - 02:36 : defining the loop condition
02:37 - 02:56 : initializing the loop variable
02:57 - 03:36 : infinite loops
03:37 - 04:29 : updating the loop variable