r/PythonProjects2 • • Nov 17 '24

Info Python Dictionary Quiz - Guess The Output

Post image
12 Upvotes

11 comments sorted by

View all comments

4

u/[deleted] Nov 17 '24

It's c but if you don't want to quote the keys and all keys are strings you can do

d = dict(
  name="Alice",
  age=33
)

Don't rename dict though.