예외의 종류
예외의 종류NameError· 선언하지 않은 변수 'x'에 접근· NameError: name 'x' is not defined ZeroDivisionError· '0'으로 나눔· ZeroDivisionError: division by zero IndexError· 리스트의 접근 가능한 인덱스를 넘음· 시퀀스 자료형이 범위를 벗어난 인덱스 참조 요구시에 발생시킴· 리스트, 튜플, 문자열등에서도 동일한 조건에서 발생됨· IndexError: list index out of range TypeError· 지원하지 않는 연산(정수를 문자열로 나눔)· TypeError: unsupported operand type(s) for /: 'int' and 'str' ValueError· 입력받은 문자열 숫자를 숫자자..