TypeError: 'int' object is not callable
Error
- python으로 알고리즘 문제를 풀던 중 len()함수가 도저히 먹히지가 않고 다음과 같은 에러가 계속 나왔다.
Traceback (most recent call last): File "/Users/lyk/Documents/CPP/t.py", line 49, in <module> if(check(mid,l,k)): File "/Users/lyk/Documents/CPP/t.py", line 14, in check print(len(temp_l)) TypeError: 'int' object is not callable
Error 해결
- len이라는 변수를 사용해서 생긴 에러였다.
- 이미 정해져 있는 함수 이름은 변수 이름으로 사용하지 말자.
Author And Source
이 문제에 관하여(TypeError: 'int' object is not callable), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@dldydrhkd/TypeError-int-object-is-not-callable저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)