
Already know some of this? A 2-minute test skips the lessons you know.
Take the placement testA free 9-lesson course built from Shradha Khapra's 1h 04m of YouTube video. 1 day at 90 minutes a day, with study notes and a quiz in every lesson. A 2-minute placement test skips what you already know.
Taught by Shradha Khapra on YouTube. Videos play in YouTube's own player, so the creator keeps every view.
Understand the purpose of loops, the syntax of while loops, and how to use a counter variable to control iterations.
Write while loops to print numbers from 1 to 100 and then in reverse from 100 to 1 using a decrementing counter.
Generate a multiplication table for a user-provided number n using a while loop that iterates from 1 to 10.
Use a while loop with an index variable to iterate through a list and print each element by accessing it via index.
Recognize infinite loops caused by missing or incorrect update statements and use break to exit a loop early when a condition is met.
Apply the continue keyword to skip the current iteration, such as printing only odd or even numbers in a range.
Solve practice problems: calculate the sum of first n natural numbers and compute factorial using a while loop.
Compute factorial using a for loop with an accumulator variable and review key loop concepts covered in the chapter.