diff --git a/kjg/python-the-hard-way/e12.py b/kjg/python-the-hard-way/e12.py new file mode 100644 index 0000000..16e6920 --- /dev/null +++ b/kjg/python-the-hard-way/e12.py @@ -0,0 +1,5 @@ +age = input("How old are you? ") +height = input("How tall are you? ") +weight = input("How much do you weight? ") + +print(f"So, you're {age} old, {height} tall and {weight} heavy.") diff --git a/kjg/python.org b/kjg/python.org index d3f5fd1..64a4a71 100644 --- a/kjg/python.org +++ b/kjg/python.org @@ -75,4 +75,5 @@ how to print for multiline or nextline how to use \ (using special chracter) **** ex11 how to use key input - +**** ex12 +how to use key input with print