-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex5.py
More file actions
24 lines (22 loc) · 749 Bytes
/
ex5.py
File metadata and controls
24 lines (22 loc) · 749 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
name = 'Zed A. Shaw'
age = 35 #not a lie
height = 74 #inches
weight = 180 # lbs
eyes = 'Blue'
teeth = 'White'
hair = 'Brown'
print(f"Let's talk about {name}.")
print(f"He's {height} inches tall.")
print(f"He's {weight} pounds heavy.")
print("Actually that's not too heavy.")
print(f"He's got {eyes} eyes and {hair} hair.")
print(f"His teeth are usually {teeth} depending on the coffee.")
#this line is tricky,try to get it exactly right
total = age + weight + weight
print(f"If I add {age}, {height}, and {weight} I get {total}.")
h_inch = int(input("Inches: "))
h_cm = round(h_inch * 2.54, 1)
print("He's", h_cm,"cm tall.")
w_pounds = int(input("lbs: "))
w_kg = round(w_pounds * 2.2, 2)
print("He's", w_kg, "kg heavy." )