PY
py
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
''' I looked through my old files and found this old code. It was one of my earliest
Python code snippets of those few I have kept. I have good memories of it and
still find it totally adorable. I figured I wanted to share it with you guys here.
Enjoy! '''
print("***WELCOME TO PYPET***")
bunny = {
"name" : "Muffy",
"hungry": False,
"weight": 5.4,
"age": 4,
"photo": "(-'.'-)",
}
bird = {
"name": "Bell",
"hungry": True,
"weight": 0.7,
"age": 2,
"photo": "(*v*)",
}
print("Hello " + bunny["name"] + "!")
print(bunny["photo"])
print("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ")
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run