Hausaufgabe--Python 08

0-- print A/B/C/D rather than detail score:

score = float(input('please input your score: '))

if score>=90:
  print('A')
elif 80<=score<90:
  print('B')
elif 60<=score<80:
  print('C')
else:
  print('D')

 

1-- compare 

small = x if (x < y and x < z) else (y if y < z else z)

posted @ 2017-05-25 16:55  ReedyLi  阅读(174)  评论(0编辑  收藏  举报