Python Intermediate Quiz
List comprehensions, decorators, generators, exception handling, and OOP in Python.
Question 1 of 7
Question 1 of 7python
What is the output of this list comprehension?
python
nums = [1, 2, 3, 4]
result = [x * 2 for x in nums if x % 2 == 0]
print(result)