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(4)
return?
π‘ Hint: Remember the start is 0 and it excludes the stop.
Question 2
Easy
If you use range(1, 5)
, what numbers do you get?
π‘ Hint: Excludes the stop value of 5.
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, 3)
produce?
π‘ Hint: Focus on how increments affect the sequence.
Question 2
True or False: In Python 3, range produces a list.
π‘ Hint: Think about what type 'range' returns in Python 3.
Solve 2 more questions and get performance evaluation
Push your limits with challenges.
Question 1
Write a Python function that returns all odd numbers between 1 and 100 using the range function.
π‘ Hint: Focus on how to set your start, stop, and step values.
Question 2
Explain how you would adjust the range to include numbers below zero, and provide code as an example.
π‘ Hint: Consider how stepping affects both the start and stop.
Challenge and get performance evaluation