-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.py
More file actions
62 lines (58 loc) · 2.08 KB
/
Copy pathdata.py
File metadata and controls
62 lines (58 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
pets = {
'dogs': [
{
'name': 'Spot',
'age': 2,
'breed': 'Dalmatian',
'description': 'Spot is an energetic puppy who seeks fun and adventure!',
'url': 'https://content.codecademy.com/programs/flask/introduction-to-flask/dog-spot.jpeg'
},
{
'name': 'Shadow',
'age': 4,
'breed': 'Border Collie',
'description': 'Eager and curious, Shadow enjoys company and can always be found tagging along at your heels!',
'url': 'https://content.codecademy.com/programs/flask/introduction-to-flask/dog-shadow.jpeg'
}
],
'cats': [
{
'name': 'Snowflake',
'age': 1,
'breed': 'Tabby',
'description': 'Snowflake is a playful kitten who loves roaming the house and exploring.',
'url': 'https://content.codecademy.com/programs/flask/introduction-to-flask/cat-snowflake.jpeg'
}
],
'rabbits': [
{
'name': 'Easter',
'age': 4,
'breed': 'Mini Rex',
'description': 'Easter is a sweet, gentle rabbit who likes spending most of the day sleeping.',
'url': 'https://content.codecademy.com/programs/flask/introduction-to-flask/rabbit-easter.jpeg'
}
]
}
dog = [
{
'name': 'Spot',
'age': 2,
'breed': 'Dalmatian',
'description': 'Spot is an energetic puppy who seeks fun and adventure!',
'url': 'https://content.codecademy.com/programs/flask/introduction-to-flask/dog-spot.jpeg'
},
{
'name': 'Shadow',
'age': 4,
'breed': 'Border Collie',
'description': 'Eager and curious, Shadow enjoys company and can always be found tagging along at your heels!',
'url': 'https://content.codecademy.com/programs/flask/introduction-to-flask/dog-shadow.jpeg'
}
]
# count = 2
# if count <= (len(pets['dogs']) -1) and count > -1:
# print('Y')
# else:
# print('N')
# print(pets['dogs'][-3])