python_study_6-条件语句

if...else...条件语句

 

练习:学习成绩>=90分的同学用A表示,60-89的分之间的用B表示, 60分一下的用C表示

#score = int(input('请输入分数:'))
score = 90
if score >= 90:
print('A')
elif score <= 89 and score >= 60:
print('B')
else:
print('C')

while 条件语句 

 

for循环

 

posted @ 2019-03-19 20:07  杭州-果冻  阅读(92)  评论(0编辑  收藏  举报