Industry-relevant training in Business, Technology, and Design to help professionals and graduates upskill for real-world careers.
Fun, engaging games to boost memory, math fluency, typing speed, and English skillsβperfect for learners of all ages.
Test your understanding with targeted questions related to the topic.
Question 1
Easy
What does range(5)
produce?
π‘ Hint: Remember, it starts from 0 by default.
Question 2
Easy
If I write range(1, 5)
, what numbers are generated?
π‘ Hint: Consider the upper limit when analyzing this.
Practice 4 more questions and get performance evaluation
Engage in quick quizzes to reinforce what you've learned and check your comprehension.
Question 1
What is the output of list(range(3, 8))
?
π‘ Hint: Remember the end is exclusive in the range.
Question 2
In Python 3, does range()
produce a list?
π‘ Hint: Think of the implications for how we handle outputs of `range()`.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
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.
Question 2
Create a program that prints every third number between 1 and 30 in reverse order using range()
.
π‘ Hint: Determine the appropriate start and step.
Challenge and get performance evaluation