What is the output of the following python code? a= [1, 2, 3, 4] b= [num * 2 for num in a if num % = = θ] print(b)
- [2, 6]
- [2, 4, 6]
- [4, 8]Answer
- None of these
Source: SPSC Senior Computer Operator — 14 Jan 2025found on TestPoint
Explanation coming soon.
