Answers for "comprehensions"

0

comprehensions

print([x * 2 for x in range(10) if x % 2 == 0])  # [0, 4, 8, 12, 16]
Posted by: Guest on October-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language