Skip to content

Opening book details…

About this document

Python Programming Lab Manual R22 by Naga Kalyan is a document available to read on EtoBox.

Here are the steps to demonstrate working with dictionaries in Python: 1. Create a dictionary with some key-value pairs: d = {"Name": "John", "Age": 29, "salary":25000,"Company":"GOOGLE"} 2. Print the dictionary to see the output: print(d) 3. Access a value using its key: print(d["Name"]) print(d["Age"]) 4. Get all the keys: print(d.keys()) 5. Get all the values: print(d.values()) This program demonstrates some basic operations like creating, accessing and printing a dictionary in Python. The k

Author
Naga Kalyan
Language
EN