EasyOutput prediction
Dict comprehension
What does this code print?
squares = {x: x**2 for x in range(1, 5)}
print(squares[3])← → arrow keys to navigate
Sign in to save your progress.
What does this code print?
squares = {x: x**2 for x in range(1, 5)}
print(squares[3])← → arrow keys to navigate
Sign in to save your progress.