Print the content of the persistent dictionary below in the following format: key: value.
Shelve
Printing the content
Report a typo
Write a program in Python 3
lib = shelve.open("my_library")
lib["Twilight Saga"] = ["Twilight", "New Moon", "Eclipse", "Breaking Dawn"]
# write your code here
lib.close()
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.