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(3)
produce?
π‘ Hint: Remember it starts at 0.
Question 2
Easy
What is the default step value in range()
?
π‘ Hint: Think about how numbers increment.
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 does range(1, 5)
produce?
π‘ Hint: Look at the definitions of inclusive and exclusive limits.
Question 2
Is range(0, 10)
the same as range(10)
?
π‘ Hint: Think about what happens when you don't specify the start value.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Create a sequence using range that counts from 20 to 1, skipping every 3 numbers, and explain why you end up with those specific numbers.
π‘ Hint: Start from 20 and decrement in steps of 3.
Question 2
If you reversed the range and started from 10 down to 1 but only included even numbers, what would the code look like? Provide the output.
π‘ Hint: Remember you can start from higher and step down, keeping track of even numbers.
Challenge and get performance evaluation