Skip to content

Commit

Permalink
Update python.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nkoroste authored Dec 1, 2024
1 parent 962babf commit af532e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ for key, value in d.items(): # Iterate over key-value pairs
print(key, value)

# Useful methods
d.keys() # List of keys
d.values() # List of values
d.items() # List of key-value pairs
list(d.keys() ) # List of keys
list(d.values()) # List of values
list(d.items()) # List of key-value pairs


# Error cases:
Expand Down

0 comments on commit af532e9

Please sign in to comment.