LearnPython3theHardWay__Excercise 11 Asking Qustions

建议ex11-14连起来学习,主要讲input

知识点:print(end=’’)的用法,input的用法

经过大量烦躁的练习后,我们现在get data into your programs。大部分的软件做的是以下的事情 :
1、让用户输入点什么
2、包装一下
3、输出包装后的结果

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

print(f"So,you're {age} old, {height} tall and {weight} heavy.")

What you should see
How old are you? 38
How tall are you? 6'2"
How much do you weight? 180lbs
So,you're 38 old, 6'2" tall and 180lbs heavy.
Study Drills

1、上网查查 input是干啥滴
2、你能找其他方法使用input么
3、制作相似的提问表

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值