def students_ranks(): name = ["Alice", "Mattew", "Tommy"] for student in name: try: user_input = input(f"{student}의 평균점수를 입력해주세요: ") score_ranks = float(user_input) if score_ranks <= 50: print(f"{student}의 등급은 C입니다.\n") elif score_ranks <= 80: print(f"{student}의 등급은 B입니다.\n") else: print(f"{student}의 등급은 A입니다.\n") except ValueError: print("유효하지 않은 숫자입니다.") students_ranks()
유명한 프로그래머 에릭 레이먼드는 파이썬을 배운 지 단 하루만에 자신이 원하는 프로그램을 만들 수 있었다.
저 정도 프로그램은 파이썬을 처음 시작한 지 3시간만에 작성할 수 있어야 함
그러면 뛰어난 프로그래머의 자질이 있다고 생각해도 됨
댓글 0