Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge 1 | While Loops: Get Started
Python Loops
course content

Course Content

Python Loops

Python Loops

1. While Loops: Get Started
2. While Loops: Essentials
3. For Loops
4. Nested Loops

Challenge 1

Summary

  • Instructions are executing until stop condition is False.
  • Counter in the stop condition is changing inside the loop. It can be decremented or incremented by some number.

Task

Understanding the stop condition is important. Change the given code to get such an output:

Task

Understanding the stop condition is important. Change the given code to get such an output:

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 1. Chapter 2
toggle bottom row

Challenge 1

Summary

  • Instructions are executing until stop condition is False.
  • Counter in the stop condition is changing inside the loop. It can be decremented or incremented by some number.

Task

Understanding the stop condition is important. Change the given code to get such an output:

Task

Understanding the stop condition is important. Change the given code to get such an output:

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Section 1. Chapter 2
toggle bottom row

Challenge 1

Summary

  • Instructions are executing until stop condition is False.
  • Counter in the stop condition is changing inside the loop. It can be decremented or incremented by some number.

Task

Understanding the stop condition is important. Change the given code to get such an output:

Task

Understanding the stop condition is important. Change the given code to get such an output:

Switch to desktop for real-world practiceContinue from where you are using one of the options below

Everything was clear?

Summary

  • Instructions are executing until stop condition is False.
  • Counter in the stop condition is changing inside the loop. It can be decremented or incremented by some number.

Task

Understanding the stop condition is important. Change the given code to get such an output:

Switch to desktop for real-world practiceContinue from where you are using one of the options below
Section 1. Chapter 2
Switch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt