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()
print(f"So, you're {age} old, {height} tall and {weight} heavy.")
#result
How old are you? 38
How tall are you? 6'22"
How much do you weight? 180lbs
So, you're 38 old, 6'22" tall and 180lbs heavy.
注意:
end = ’ ’ 告诉print不要使用换行符结束这一行跑到下一行去。
py2.x 中和py3.x 中input函数的比较:https://blog.csdn.net/qq_34595352/article/details/90379141