강의

멘토링

커뮤니티

Inflearn Community Q&A

iminiro2823's profile image
iminiro2823

asked

Python Basics to Practice Part 4

Object-Oriented Programming-2(Lab-3)

Part 14 프로그래밍-2(실습-2) 에 특수메서드 설명시 len 을

Written on

·

198

0

내장함수가 아닌 특수메서드 설명이니

__len__(self):

 

라하고 출력시 print(len(book))으로 해야 맞는듯 합니다.

특수메서드 설명인데 일반내장함수처럼 강의가 됐습니다.

python

Answer

This question is waiting for answers
Be the first to answer!
iminiro2823's profile image
iminiro2823

asked

Ask a question