The program defines a dictionary named "student" which contains information about a student. The information includes the student's name, roll number, marks, age, gender, and city.
In summary, the program retrieves all the keys from the "student" dictionary and prints each key on a separate line.
student = { "Name": "Tara", "RollNo":130046, "Mark": 458, "Age":16, "Gender":"Female", "City": "Chennai" } print(student.keys()) print("\n==== Keys ====") for k in student.keys(): print(" ",k)
dict_keys(['Name', 'RollNo', 'Mark', 'Age', 'Gender', 'City']) ==== Keys ==== Name RollNo Mark Age Gender City
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions