-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathex5.py
More file actions
22 lines (18 loc) · 647 Bytes
/
ex5.py
File metadata and controls
22 lines (18 loc) · 647 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 about {height} inches tall.")
print(f"He's about {weight} pounds heavy.")
print("Actually that's not to heavy.")
print(f"He's got {eyes} eyes and {hair} hair.")
print(f"His teeth are usually {teeth} depending on the coffee.")
total = age + height + weight
print(f"If I add {age}, {height}, and {weight}, I get {total}.")
heightInCm = height * 2.54
weightInKg = weight / 2.205
print(f"{heightInCm} is my height in centimeters. {weightInKg} is my weight in kilograms.")