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 do in Python?
π‘ Hint: Think about applying a function to each element of a list.
Question 2
Easy
How can we filter a list to only include even numbers?
π‘ Hint: Use a modulus operation!
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 return in Python 3?
π‘ Hint: Remember the difference between Python 2 and 3.
Question 2
True or False: List comprehensions can only be used for numeric data.
π‘ Hint: Consider strings and other collections you can use them with.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Using list comprehension, create a list of all odd squares from 1 to 100.
π‘ Hint: Use the same square function but add a condition for odd numbers.
Question 2
How would you modify the code for Pythagorean triples to include only those where x, y, z are less than 50?
π‘ Hint: Change the range from 100 to 50.
Challenge and get performance evaluation