[Python #1]create e5.py
This commit is contained in:
parent
8127e6bc71
commit
3607d22d20
2 changed files with 27 additions and 0 deletions
18
kjg/python-the-hard-way/e5.py
Normal file
18
kjg/python-the-hard-way/e5.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
my_name = 'Zed A. Shaw'
|
||||
my_age=35 # notalie
|
||||
my_height = 74 # inches
|
||||
my_weight = 180 # lbs
|
||||
my_eyes = 'Blue'
|
||||
my_teeth = 'White'
|
||||
my_hair = 'Brown'
|
||||
|
||||
print(f"Let's talk about {my_name}.")
|
||||
print(f"He's {my_height} inches tall.")
|
||||
print(f"He's {my_weight} pounds heavy.")
|
||||
print("Actually that's not too heavy.")
|
||||
print(f"He's got {my_eyes} eyes and {my_hair} hair.")
|
||||
print(f"His teeth are usually {my_teeth} depending on the coffee.")
|
||||
|
||||
# this line is tricky, try to get it exactly right
|
||||
total = my_age + my_height + my_weight
|
||||
print(f"If I add {my_age}, {my_height}, and {my_weight} I get {total}.")
|
||||
Loading…
Add table
Add a link
Reference in a new issue