Practice - Week - 03
Practice Questions
Test your understanding with targeted questions
What does range(5) produce?
💡 Hint: Remember, it starts from 0 by default.
If I write range(1, 5), what numbers are generated?
💡 Hint: Consider the upper limit when analyzing this.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What is the output of list(range(3, 8))?
💡 Hint: Remember the end is exclusive in the range.
In Python 3, does range() produce a list?
💡 Hint: Think of the implications for how we handle outputs of `range()`.
1 more question available
Challenge Problems
Push your limits with advanced challenges
Using the range() function create a list of numbers from 1 to 50 that are divisible by both 3 and 5.
💡 Hint: Think about selecting appropriate numbers while looping.
Create a program that prints every third number between 1 and 30 in reverse order using range().
💡 Hint: Determine the appropriate start and step.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.