Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge | While Loops: Essentials
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

Task

Is this loop infinite or not? If yes, change the code to make it finite and get such a list: [11, 9, 7, 5, 3, 1].

If your code runs too long, probably, the infinite loop is executed. Copy your code (if needed) and refresh the page.

Task

Is this loop infinite or not? If yes, change the code to make it finite and get such a list: [11, 9, 7, 5, 3, 1].

If your code runs too long, probably, the infinite loop is executed. Copy your code (if needed) and refresh the page.

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

Everything was clear?

Section 2. Chapter 2
toggle bottom row

Challenge

Task

Is this loop infinite or not? If yes, change the code to make it finite and get such a list: [11, 9, 7, 5, 3, 1].

If your code runs too long, probably, the infinite loop is executed. Copy your code (if needed) and refresh the page.

Task

Is this loop infinite or not? If yes, change the code to make it finite and get such a list: [11, 9, 7, 5, 3, 1].

If your code runs too long, probably, the infinite loop is executed. Copy your code (if needed) and refresh the page.

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

Everything was clear?

Section 2. Chapter 2
toggle bottom row

Challenge

Task

Is this loop infinite or not? If yes, change the code to make it finite and get such a list: [11, 9, 7, 5, 3, 1].

If your code runs too long, probably, the infinite loop is executed. Copy your code (if needed) and refresh the page.

Task

Is this loop infinite or not? If yes, change the code to make it finite and get such a list: [11, 9, 7, 5, 3, 1].

If your code runs too long, probably, the infinite loop is executed. Copy your code (if needed) and refresh the page.

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

Everything was clear?

Task

Is this loop infinite or not? If yes, change the code to make it finite and get such a list: [11, 9, 7, 5, 3, 1].

If your code runs too long, probably, the infinite loop is executed. Copy your code (if needed) and refresh the page.

Switch to desktop for real-world practiceContinue from where you are using one of the options below
Section 2. 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