Skip to content

Commit e57476e

Browse files
committed
Exercise 12 & 13
1 parent 0bd8d16 commit e57476e

File tree

4 files changed

+26
-0
lines changed

4 files changed

+26
-0
lines changed

ex12.py

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

ex13.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from sys import argv
2+
# read the WYSS section for how to run this
3+
script, first, second, third = argv
4+
5+
print("The script is called:", script)
6+
print("Your first variable is:", first)
7+
print("Your second variable is:", second)
8+
print("Your third variable is:", third)

ex13drill.md

Whitespace-only changes.

ex13drill.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from sys import argv
2+
# read the WYSS section for how to run this
3+
script, name, degree, skill = argv
4+
5+
print("The script is called:", script)
6+
print("Your name is:", name)
7+
print("Your are a ", degree, "degree")
8+
print("Your have a", skill, "skill")
9+
10+
input("Press Enter to continue...")
11+
likes = input("What do you like? ")
12+
print("So you had a", likes, "in your life and the you get your", degree,"degree.")

0 commit comments

Comments
 (0)