Python
Dictionary
Elements in the variable are always in pairs(key: value), curly brackets.
#Dictionary
Dictionary1 = {"Name": "Hafeed", "Age": 36, "Hobbies":["Reading", "Cycling"] }
print(Dictionary1)
Output
{'Name': 'Hafeed', 'Age': 36, 'Hobbies': ['Reading', 'Cycling']}
No comments:
Post a Comment