Medium
Filter, Then Map
Read integers. Using
filter with a lambda keep the multiples of 3, then using map with a lambda square them. Print the resulting list.Input
One line.
Output
A list.
Sample 1
Input
1 3 6 7 9
Output
[9, 36, 81]
Sample 2
Input
1 2
Output
[]
Output appears here