Python Dictionaries: Key-Value Pairs and Accessing Values

🐍 Python Learning – Day 11 📘 Understanding Dictionaries in Python Today I practiced Dictionaries in Python using Jupyter Notebook A dictionary stores data in key–value pairs, which makes it easy to organize and access related information. 📌 Example: developer = { "name": "Mihir", "language": "Python", "tool": "Docker" } print(developer) Output: {'name': 'Mihir', 'language': 'Python', 'tool': 'Docker'} 📌 Accessing a Value print(developer["language"]) Output: Python 📌 What I learned today: • Dictionaries store data using key–value pairs • Values can be accessed using their keys • Useful for organizing structured data Dictionaries are widely used in programming when handling structured information. Continuing to strengthen my Python fundamentals step by step 🚀 #Python #Programming #PythonBasics #LearningInPublic

To view or add a comment, sign in

Explore content categories