Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Challenge: Password Validation | Encapsulation
/
In-Depth Python OOP
セクション 3.  9
single

single

bookChallenge: Password Validation

メニューを表示するにはスワイプしてください

Note

The comments The new code is below and The new code is above will help you to find the new code.

タスク

スワイプしてコーディングを開始

Let's implement password validation for your code!

  1. Define the password property by the @property decorator.
  2. The password property should return the _password attribute.
  3. Implement the password setter by the @property.setter decorator.
    Take attention: This decorator starts from the property name (@{property_name}.setter).
  4. The password should be string with a length greater than or equal to 8.
  5. Use the self.password property inside the __init__() magic method
    (not a _password).

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 3.  9
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt