diff --git a/youngjin.han/python-the-hard-way/ex11.py b/youngjin.han/python-the-hard-way/ex11.py new file mode 100644 index 0000000..8392830 --- /dev/null +++ b/youngjin.han/python-the-hard-way/ex11.py @@ -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.") diff --git a/youngjin.han/python-the-hard-way/ex12.py b/youngjin.han/python-the-hard-way/ex12.py new file mode 100644 index 0000000..f1fcdd1 --- /dev/null +++ b/youngjin.han/python-the-hard-way/ex12.py @@ -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.") diff --git a/youngjin.han/python.org b/youngjin.han/python.org index 16fa719..dd879eb 100644 --- a/youngjin.han/python.org +++ b/youngjin.han/python.org @@ -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