Python challenge
What does this print?
data = [10, 20, 30, 40, 50]
result = [x * 2 for x in data if x > 20]
print(result)
A) [60, 80, 100]
B) [20, 40, 60, 80, 100]
C) [30, 40, 50]
D) Error
Drop your answer below. 👇
#Python #PythonChallenge #LearnPython #CodeNewbie