Exercise11 - input

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

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?
50kg
So, you're '23' old, '160cm' tall and '50kg' heavy.

2019-09-27

15:23:07

猜你喜欢

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