Sunday, 9 May 2021

How to add a dictionary key valuepair

How to add a key and a value to the key of a dictionary:

code:

a = {}

a["home"] = "New York"

No comments:

Post a Comment