Learning Circle : python #2 - ex11, ex12
This commit is contained in:
parent
64bc3ef9f2
commit
c0b8006422
3 changed files with 23 additions and 1 deletions
12
youngjin.han/python-the-hard-way/ex11.py
Normal file
12
youngjin.han/python-the-hard-way/ex11.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
#print("How old are you?", end=' ')
|
||||
#age = input()
|
||||
#print("How tall are you?", end=' ')
|
||||
#height = input()
|
||||
#print("How much do you weigh?", end=' ')
|
||||
#weight = input()
|
||||
|
||||
age = input("How old are you?" ' ')
|
||||
height = input("How tall are you?" ' ')
|
||||
weight = input("How much do you weigh?" ' ')
|
||||
|
||||
print(f"So, you're {age} old, {height} tall and {weight} heavy.")
|
5
youngjin.han/python-the-hard-way/ex12.py
Normal file
5
youngjin.han/python-the-hard-way/ex12.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
age = input("How old are you? ")
|
||||
height = input("How tall are you? ")
|
||||
weight = input("How much do you weigh? ")
|
||||
|
||||
print(f"So, you're {age} old, {height} tall and {weight} heavy.")
|
|
@ -5,7 +5,12 @@
|
|||
- ex9.py
|
||||
- none
|
||||
- ex10.py
|
||||
-
|
||||
- none
|
||||
- ex11.py
|
||||
- none
|
||||
- ex12.py
|
||||
- pydoc input
|
||||
- describe input on python. It looks like man commnad on linux shell.
|
||||
|
||||
* 2020-05-18
|
||||
** note
|
||||
|
|
Loading…
Reference in a new issue