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 is the output of range(3)
?
π‘ Hint: Think about the start point when only one argument is used.
Question 2
Easy
If range(1, 5)
is used, what numbers will be generated?
π‘ Hint: Remember, the stop value is exclusive.
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(10, 0, -2)
output?
π‘ Hint: Consider how you would decrement within the range.
Question 2
True or False: range(5, 10)
includes the number 10.
π‘ Hint: Remember, the upper limit is not included in the output.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Create a function that takes two parameters, start and end, and uses range()
to print all odd numbers between start and end.
π‘ Hint: Think through how odd numbers can be generated using a step.
Question 2
Use range()
to create a sequence starting from 100 down to 0 in steps of 10, and store it in a list.
π‘ Hint: How would you define your starting and stopping points for a countdown?
Challenge and get performance evaluation