Python Dictionary methods beginners ki chala important 🔑
Ee video lo manam keys(), values(), items() methods ni simple ga Telugu lo examples tho explain chestham.
👉 Topics covered:
keys() method – dictionary lo unna keys ni tiskuntundi
values() method – dictionary lo unna values ni return chestundi
items() method – key & value pairs ni return chestundi
💡 Example:
dict1 = {"name": "Nagendra", "age": 25, "city": "Hyderabad"}
print(dict1.keys()) # keys
print(dict1.values()) # values
print(dict1.items()) # key-value pairs
📌 Output:
keys → name, age, city
values → Nagendra, 25, Hyderabad
items → (name, Nagendra), (age, 25), (city, Hyderabad)
🎯 Beginners ki easy ga ardham ayye vidhamga explain chesanu