LogiQuest
Back to Comprehensions and Generators
11

What is the output of the following code?

print([(x, y) for x in range(2) for y in range(2) if x != y])
Easy

Discussion (0)

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

Log in to join the discussion.