Exercise12 - input

age = input("How old are you?")
height = input("How tall are you?")
weight = input("How much do you weigh?")

print("So, you're %r old, %r tall and %r heavy." % (
age, height, weight))

output

How old are you?23
How tall are you?160cm
How much do you weigh?48kg
So, you're '23' old, '160cm' tall and '48kg' heavy.

2019-09-27

15:46:47

 

猜你喜欢

转载自www.cnblogs.com/petitherisson/p/11596984.html