Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 04.Dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
# e.g if we write print dictVariable['Education']
# because Education key is not present in the dictionary

print "Length of Dictionary =", len(dictVariable) # 3
print f"Length of Dictionary = len(dictVariable) " # 3 use f string for better understanding

# Returns a list of dictionary's (key,value) tuple pairs
print 'List of Dictionary Items =', dictVariable.items()
print f'List of Dictionary Items = dictVariable.items()'
# [('Age', 23), ('Name', 'Prasad'), ('Class', 'First')]

print 'Keys of Dictionary =', dictVariable.keys() # ['Age', 'Name', 'Class']
Expand Down