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 the map function return?
π‘ Hint: Think about what you need to do in Python 3.
Question 2
Easy
How can you create a list of even numbers from range(10) using filter?
π‘ Hint: What condition do you need for filtering?
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 the map()
function do in Python?
π‘ Hint: Think about how items are transformed using a function.
Question 2
True or False: The output of the filter()
function in Python is always a list.
π‘ Hint: Consider what `filter()` gives back before conversion.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Write a function which returns a list of prime numbers up to a given number n using filter
and a corresponding check function. Then use list comprehension to apply that filter on a range.
π‘ Hint: Remember how to define a prime check and utilize filter effectively.
Question 2
Create a list comprehension that generates a multiplication table (for example, the first 10 multiples of numbers 1-5), and format it into a matrix.
π‘ Hint: Think about what ranges you will need for the outer and inner loops.
Challenge and get performance evaluation