Comprehensions1 / 5
EASY·Output prediction
What does this code print?
nums = [1, 2, 3, 4, 5, 6] evens = [x for x in nums if x % 2 == 0] print(evens)
Sign in to save your progress.
What does this code print?
nums = [1, 2, 3, 4, 5, 6] evens = [x for x in nums if x % 2 == 0] print(evens)
Sign in to save your progress.