セクション 1. 章 4
single
Challenge: Using init and self in Classes
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
- Define a class called
Book. - The class should have an
__init__method that takes three parameters:self,title, andauthor. - Initialize the
titleandauthorattributes usingself.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 4
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください