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(0, 5)
produce?
π‘ Hint: Think about the starting point and the endpoint.
Question 2
Easy
How do you create a countdown from 5 to 1 using range()?
π‘ Hint: Remember to set a starting value above 0.
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, 10)
generate?
π‘ Hint: Remember the stop point is exclusive.
Question 2
In Python 3, is the output of range()
a list?
π‘ Hint: Think about how we convert it to a list.
Solve 2 more questions and get performance evaluation
Push your limits with challenges.
Question 1
Create a function using range to generate a list of squares of even numbers from 0 to 20.
π‘ Hint: Think of what range parameters you would need to generate evens.
Question 2
Write a code snippet that uses range to print all numbers from 50 to 1.
π‘ Hint: Ensure you count down correctly!
Challenge and get performance evaluation