#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목class 관련 질문 드립니다.2020-05-20 02:20
작성자

idle를 실행해서 helloworld라는 이름의 함수를 하나 만들고 실행 후 type(helloworld)를 하면 <class 'function'>이라고 나옵니다. 

질문 1. helloworld는 function의 객체인건가요?

질문 2. 질문 1이 맞다면 isinstance(helloworld, function)을 하면 True가 나올 것 같은데 'function' is not defined 라고 나옵니다. 왜 그렇습니까?

댓글