-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex5.py
More file actions
25 lines (21 loc) · 787 Bytes
/
ex5.py
File metadata and controls
25 lines (21 loc) · 787 Bytes
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
name = "Rowan A. D'Ausilio"
age = 17 # not a lie
height = 59 # inches
weight = 85 # lbs
eyes = 'Brown'
teeth = 'White'
hair = 'Black'
print("Let's talk about %s." % name)
print("He's %d inches tall." % height)
print("He's %d pounds heavy." % weight)
print("Actually that's not too heavy")
print("He's go %s eyes and %s hair." % (eyes, hair))
print("His teeth are usually %s depending on the coffee." % teeth)
# this line is tricky, try to get it exactly right
print("If I add %d, %d, and %d I get %d." % (
age, height, weight, age + height + weight))
centimeters = 2.54 # The number of centimeters in an inch
kilograms = 0.453592
print("Let's switch it up.")
print("He's %s centimeters tall." % (height * centimeters))
print("He weighs %s kilograms." % (weight * kilograms))