[Python #2] create e11.py
This commit is contained in:
parent
63052676fc
commit
65f0d43cfa
2 changed files with 11 additions and 0 deletions
8
kjg/python-the-hard-way/e11.py
Normal file
8
kjg/python-the-hard-way/e11.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
print("How old are you?", end=' ')
|
||||
age = input()
|
||||
print("How tall are you?", end=' ')
|
||||
height = input()
|
||||
print("How much do you weight?", end=' ')
|
||||
weight = input()
|
||||
|
||||
print(f"So, you're {age} old, {height} tall and {weight} heavy.")
|
|
@ -73,3 +73,6 @@ learn about a more complicated formatting of a string. {}
|
|||
how to print for multiline or nextline
|
||||
**** ex10
|
||||
how to use \ (using special chracter)
|
||||
**** ex11
|
||||
how to use key input
|
||||
|
||||
|
|
Loading…
Reference in a new issue