Hướng dẫn thử thách
1 / 59
Step 2
Dictionaries store data in the form of *key*-*value* pairs. A key is separated from the correspondent value by a colon. And each key-value pair is separated from the following pair by a comma:
```py
my_dict = {
'name': 'Michael',
'occupation': 'Lumberjack'
}
```
Add a new key-value pair to your dictionary. Use the string `'species'` as the key, and the string `'guinea pig'` as the value.
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.py
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵