Friday, February 6, 2026

 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

Python Passing arguments through function using args and kwargs args take non keyworded arguments, while kwargs take keyworded arguments. de...