Fix python code tag

This commit is contained in:
Isabelle Viktoria Maciohsek
2021-01-09 23:28:19 +02:00
parent 6ca625f686
commit d4abc910af
6 changed files with 10 additions and 10 deletions

View File

@ -11,7 +11,7 @@ A common debate among Python developers seems to stem from the retrieval of dict
Although you can achieve the same result using either one, `dict.get()` is usually preferred, as it accepts a second argument which acts as the default value shall the key not exist in the given dictionary. Due to this property, `dict.get()` will always return a value, whereas `dict[key]` will raise a `KeyError` if the given key is missing.
```python
```py
a = { 'max': 200 }
b = { 'min': 100, 'max': 250 }
c = { 'min': 50 }