Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Challenge | Loops
Introduction to Python Video Course
course content

Course Content

Introduction to Python Video Course

Introduction to Python Video Course

1. Getting Started
2. Variables and Types
3. Conditional Statements
4. Other Data Types
5. Loops
6. Functions

Challenge

In this challenge, you'll manage the daily stock levels of essential grocery store products over a week. By utilizing the range() function in conjunction with the len() function, you'll simulate sales impacts on inventory and practice dynamic looping over an array of days.

Task

Iterate Over Indexes: Use a for loop with range() and len() to iterate over the products list by index.

Task

Iterate Over Indexes: Use a for loop with range() and len() to iterate over the products list by index.

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

Everything was clear?

Section 5. Chapter 5
toggle bottom row

Challenge

In this challenge, you'll manage the daily stock levels of essential grocery store products over a week. By utilizing the range() function in conjunction with the len() function, you'll simulate sales impacts on inventory and practice dynamic looping over an array of days.

Task

Iterate Over Indexes: Use a for loop with range() and len() to iterate over the products list by index.

Task

Iterate Over Indexes: Use a for loop with range() and len() to iterate over the products list by index.

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

Everything was clear?

Section 5. Chapter 5
toggle bottom row

Challenge

In this challenge, you'll manage the daily stock levels of essential grocery store products over a week. By utilizing the range() function in conjunction with the len() function, you'll simulate sales impacts on inventory and practice dynamic looping over an array of days.

Task

Iterate Over Indexes: Use a for loop with range() and len() to iterate over the products list by index.

Task

Iterate Over Indexes: Use a for loop with range() and len() to iterate over the products list by index.

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

Everything was clear?

In this challenge, you'll manage the daily stock levels of essential grocery store products over a week. By utilizing the range() function in conjunction with the len() function, you'll simulate sales impacts on inventory and practice dynamic looping over an array of days.

Task

Iterate Over Indexes: Use a for loop with range() and len() to iterate over the products list by index.

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