야마타노오로치

일본어학과 학생들의 Python 도전기

모두를 위한 Python 특화과정 11

Programming for Everybody (Getting Started with Python)-5

xh = float(input("Enter Hours:")) xr = float(input("Enter Rate:")) if xh > 40: xh = 40 + (xh-40) * 1.5 xp = float(xh) * float(xr) print(xp) 결과 score = input("Enter Score: ") score = float(score) try: if score >= 0.9: print('A') elif score >= 0.8: print('B') elif score >= 0.7: print('C') elif score >= 0.6: print('D') elif score < 0.6: print('F') except: print('i want eat') quit()