LogiQuest
Back to Comprehensions and Generators
4

What is the output of the following code?

print([(i, j) for i in range(2) for j in range(2) if i != j])
Easy

Discussion (0)

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

Log in to join the discussion.