Skip to content

Commit

Permalink
[pythonlegacy/de-de] Fix typos (#5115)
Browse files Browse the repository at this point in the history
  • Loading branch information
jk4e authored Sep 9, 2024
1 parent 5938f7f commit bacc08e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions de-de/pythonlegacy-de.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ d, e, f = 4, 5, 6
e, d = d, e # d is now 5 and e is now 4


# Dictionarys (Wörterbucher) speichern Key-Value-Paare
# Dictionarys (Wörterbücher) speichern Key-Value-Paare
empty_dict = {}
# Hier ein gefülltes Wörterbuch
filled_dict = {"one": 1, "two": 2, "three": 3}
Expand All @@ -213,7 +213,7 @@ filled_dict.values() #=> [3, 2, 1]
"one" in filled_dict #=> True
1 in filled_dict #=> False

# Einen nicht vorhandenenen Schlüssel zu suchen, löst einen KeyError aus
# Einen nicht vorhandenen Schlüssel zu suchen, löst einen KeyError aus
filled_dict["four"] # KeyError

# Mit der get-Methode verhindern wir das
Expand Down

0 comments on commit bacc08e

Please sign in to comment.