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
Use the map function to obtain the cubes of numbers from 1 to 5.
π‘ Hint: Remember to wrap the `map` call in `list()`.
Question 2
Easy
Create a filtered list containing only odd numbers from [1, 2, 3, 4, 5].
π‘ Hint: Use the filter function for this.
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 will list(map(lambda x: x**2, range(5)))
return?
π‘ Hint: Think about what happens when each number gets squared.
Question 2
The filter function requires what kind of input for correct operation?
π‘ Hint: Reflect on the function you would write.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Create a program that finds the sum of squares of all prime numbers below 100 using list comprehension.
π‘ Hint: Use list comprehension to keep the code clean and elegant.
Question 2
Write a function to generate all the unique Pythagorean triples (a, b, c) for a specified upper limit using list comprehensions.
π‘ Hint: Utilize conditions and nested comprehensions carefully.
Challenge and get performance evaluation