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.
Enroll to start learning
You’ve not yet enrolled in this course. Please enroll for free to listen to audio lessons, classroom podcasts and take practice test.
Test your understanding with targeted questions related to the topic.
Question 1
Easy
Create a list of cubes for numbers 1-5 using list comprehension.
💡 Hint: Use `x**3` in the expression.
Question 2
Easy
Generate a list of the first 5 letters of the alphabet.
💡 Hint: Use the `chr()` and `ord()` functions.
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 following list comprehension do: squares = [x*x for x in range(1, 6)]
?
💡 Hint: Consider the effect of multiplying a number by itself.
Question 2
True or False: List comprehensions can include conditions to filter items.
💡 Hint: Recall how filtering is done using conditions.
Solve 1 more question and get performance evaluation
Push your limits with challenges.
Question 1
Using list comprehension, create a list of tuples where the first element is a number from 1 to 5 and the second element is its cube.
💡 Hint: Think about how to format each item into a tuple.
Question 2
Given a list of strings, create a new list with only the strings that have more than 3 characters using list comprehension.
💡 Hint: Compare the length of each word to 3.
Challenge and get performance evaluation