Q. 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) (Solved)
1. [0, 2, 4, 6]
2. [0, 2, 4]
3. [0, 1, 2, 3, 4, 5]
4. Runtime error
- b. [0, 2, 4]
1. [0, 2, 4, 6]
2. [0, 2, 4]
3. [0, 1, 2, 3, 4, 5]
4. Runtime error