LogiQuest
Back to Comprehensions and Generators
10

What is the output of the following code?

print([x * x for x in range(5) if x % 2 == 0])
Easy

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.