강의

멘토링

커뮤니티

Inflearn Community Q&A

sorkxhak1685's profile image
sorkxhak1685

asked

Getting Started with Programming: Introduction to Python (Inflearn Original)

형변환 실습 중

Written on

·

267

0

Traceback (most recent call last):
  File "D:\Study\inflearn\python_basic\chapter03_01.py", line 104, in <module>
    print(int(c))
TypeError: 'int' object is not callable

이렇게 뜨는 이유가 뭔지 알 수 있을까요?
python

Answer 1

0

elche님의 프로필 이미지
elche
Questioner

인터넷 검색해서 해결했습니다. 

강의에서 예약어를 변수로 사용하지 말랬는데 float를 변수로 선언해서 사용한 문구를 바꾸고 돌려보니 정상 출력되네요 ..

예로 float=10.0 -> f=10.0 이렇게 수정했습니다.

sorkxhak1685's profile image
sorkxhak1685

asked

Ask a question