Practice - Range and Lists
Practice Questions
Test your understanding with targeted questions
What does range(3) produce?
💡 Hint: Think about starting from 0 up to but not including 3.
What is the output of range(1, 5)?
💡 Hint: Start at 1 and stop before 5.
4 more questions available
Interactive Quizzes
Quick quizzes to reinforce your learning
What will range(1, 10, 2) return?
💡 Hint: Check how many steps each number increases.
True or False: range(4) includes the number 4.
💡 Hint: Remember if the end number is included in the range.
2 more questions available
Challenge Problems
Push your limits with advanced challenges
Create a program that uses range to print the first 10 square numbers.
💡 Hint: Use range to define how many times to loop.
Write a script that generates a list of even numbers from 0 to 100 using the range function.
💡 Hint: Think about the correct start, stop, and step sizes.
Get performance evaluation
Reference links
Supplementary resources to enhance your learning experience.