We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 105ffb3 commit e7a9c7eCopy full SHA for e7a9c7e
chapter06/6-8.py
@@ -4,24 +4,24 @@
4
'type': 'fish',
5
'name': 'john',
6
'owner': 'guido',
7
-}
+ }
8
pets.append(pet)
9
10
pet = {
11
'type': 'chicken',
12
'name': 'clarence',
13
'owner': 'tiffany',
14
15
16
17
18
'type': 'dog',
19
'name': 'peso',
20
'owner': 'eric',
21
22
23
24
for pet in pets:
25
print("\nHere's what I know about " + pet['name'].title() + ":")
26
for key, value in pet.items():
27
- print("\t" + key + ": " + str(value))
+ print("\t" + key + ": " + str(value))
0 commit comments