Quiz · Comprehensions · lesson 2 of 8
Quiz — a comprehension with a condition
What does the program print?
nums = [1, 2, 3]
big = [n * 10 for n in nums if n > 1]
print(big)Subscribe to take the course
The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.