Skip to main content
๐Ÿ”ฎ Output PredictionPY Python Medium+20 XP

Dictionary Comprehension

What does this produce?

Python
result = {x: x**2 for x in range(4)}
print(result)

๐Ÿ”ฎ What is the output?

Priygop - Leading Professional Development Platform | Expert Courses & Interview Prep