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 will be the output of [x * 2 for x in range(5)]
?
π‘ Hint: Look at how many times you multiply by 2.
Question 2
Easy
Use filter
to get odd numbers from a list range(10)
.
π‘ Hint: Think about the condition for odd numbers.
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: Remember its role with functions on lists.
Question 2
True or False: In Python 3, map
returns a list directly.
π‘ Hint: Think about the differences between Python 2 and 3.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Create a function using list comprehension that takes a list of integers and returns only the numbers greater than 10 and squared.
π‘ Hint: Combine your knowledge of filtering and list comprehension.
Question 2
Define a nested list comprehension that extracts all unique Pythagorean triples from a range given below 100 and ensures no duplicates.
π‘ Hint: Think about how to avoid duplicate triples during extraction.
Challenge and get performance evaluation