예외처리 try : 실행할 명령 except 예외 as 변수: 오류처리문 else : 예외가 발생하지 않았을 떄의 처리 str = "89점" try: score = int(str) print(score) except: print("예외가 발생했습니다.") print("작업완료") while True: str = input("점수를 입력하세요 : ") try : score = int(str) print("입력한 점수 : ",score) break except: print("점수형식이 잘못되었습니다.") print("작업완료") str = "89" try: score= int(str) print(score) a = str[5] except (ValueError,IndexError): print("점수의 형식..