강의

멘토링

커뮤니티

Inflearn Community Q&A

dlwjd109415289's profile image
dlwjd109415289

asked

Python programming that even beginners can learn in one breath

First steps in programming, functions and variables

idle에서 코드 실행하면 string 은 부를수 없다고 나옵니다

Written on

·

244

1

안녕하세요. 2-1강 듣고 있습니다. 

Idle에서 코드를 실행했더니 아래와 같은 오류 메시지가 나옵니다. 어떻게 해결해야 할까요? 

    print(name)

TypeError: 'str' object is not callable

인프런 신규강의 (무료)python

Answer 1

0

pythonmento님의 프로필 이미지
pythonmento
Instructor

print 문을 실행하시기전에 문제가 있을걸로 보입니다. 혹시 print 에 문자열을 대입하시지 않으셨는지요?

idle 실행 후 입력하여 실행하신 코드 전부를 보여주세요.

dlwjd109415289's profile image
dlwjd109415289

asked

Ask a question