Skip to content

Commit 6d19080

Browse files
authored
Exercise 11 and student drill from LPTHW
Friday, 26 January 2024
1 parent ca2b3b6 commit 6d19080

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

ex11.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
print("How old are you?", end=' ')
2+
age = input()
3+
print("How tall are you?", end=' ')
4+
height = input()
5+
print("How much do you weigh?", end=' ')
6+
weight = input()
7+
8+
print(f"So, you're {age} old, {height} tall and {weight} heavy.")

ex11drill.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
print("What do you like?", end='')
2+
likes = input()
3+
print("Where do you live?", end=' ')
4+
lives = input()
5+
print("What kind of computer do you have?", end=' ')
6+
computer = input()
7+
8+
print(f"""
9+
Alright, so you said {likes} about liking me.
10+
You live in {lives}. Not sure where that is.
11+
And you have a {computer} computer. Nice.
12+
""")

0 commit comments

Comments
 (0)