セクション 3. 章 9
single
Challenge: Password Validation
メニューを表示するにはスワイプしてください
Note
The comments
The new code is belowandThe new code is abovewill help you to find the new code.
タスク
スワイプしてコーディングを開始
Let's implement password validation for your code!
- Define the
passwordproperty by the@propertydecorator. - The
passwordproperty should return the_passwordattribute. - Implement the password setter by the
@property.setterdecorator.
Take attention: This decorator starts from the property name (@{property_name}.setter). - The password should be string with a length greater than or equal to
8. - Use the
self.passwordproperty inside the__init__()magic method
(not a_password).
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 3. 章 9
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください