LogiQuest
Back to Dictionaries
10

What is the output of the following code?

d = {i: i * i for i in range(4)}
print(d[3])
Easy

Discussion (0)

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

Log in to join the discussion.