Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganesh-Chandran005 authored Dec 20, 2024
1 parent 2eb0cef commit ba4cf55
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Day-22/ganesh22.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
og= {'name': 'Alice', 'age': 25, 'city': 'New York'}
print("original dictionary",og)
print("Keys:",og.keys())
print("Values:",og.values())

print("Key-Value Pairs:",og.items(),end=" ")

print("Value for 'name':",og["name"])
print("Value for 'age':",og['age'])
print("Dictionary after pop:",og.popitem())
print("Dictionary after clear:",og.clear())

0 comments on commit ba4cf55

Please sign in to comment.