=== "Python 3.9 and above"
```Python hl_lines="1"
- {!> ../../../docs_src/python_types/tutorial008.py!}
+ {!> ../../../docs_src/python_types/tutorial008_py39.py!}
```
This means:
-def process_items(prices: dict[str, float]):
+from typing import Dict
+
+
+def process_items(prices: Dict[str, float]):
for item_name, item_price in prices.items():
print(item_name)
print(item_price)
--- /dev/null
+def process_items(prices: dict[str, float]):
+ for item_name, item_price in prices.items():
+ print(item_name)
+ print(item_price)