profile

코드잇

2022. 9. 30
list indices must be integers or slices, not str 에러 해결하기 - Python
TypeError: list indices must be integers or slices, not str 에러는 리스트의 인덱스를 정수형이 아닌 문자열으로 사용했을 때 만나는 에러입니다. 특히나 파이썬에서 for in 반복문을 사용할 때 인덱스를 문자로 받는 실수가 종종 나오곤 합니다.
이 튜토리얼은 어땠나요?