Solved

What Is the Output of the Following Program

Question 24

Multiple Choice

What is the output of the following program?
Data = [x for x in range(5) ]
Temp = [x for x in range(7) if x in data and x%2==0]
Print(temp)


A) [0, 2, 4, 6]
B) [0, 2, 4]
C) [0, 1, 2, 3, 4, 5]
D) Runtime error

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions