list comprehension python one line

32

doubled_odds = [n * 2 for n in numbers if n % 2 == 1]

Comments

Submit
0 Comments