Project 2: Blog Layout
Python Challenge
Builds on these lessons
Step 1 of 3
Project
Storing a Post as a Dictionary
Represent a blog post as a dictionary with title, author, and views keys, then read one back with post["title"]. A dict groups related values under named keys — far clearer than three separate loose variables that have to be kept in sync by hand.
🎯 Your Task
Please add the exact code shown in the light gray box below to your editor.Do not delete your previous code, just insert these new lines in the correct place!
post = {
"title": " Understanding Closures!! ",
"author": "Priya Nair",
"views": 842
}
print(post["title"])