Challenge: Password Validation
Note
The comments
The new code is below
andThe new code is above
will help you to find the new code.
Compito
Swipe to start coding
Let's implement password validation for your code!
- Define the
password
property by the@property
decorator. - The
password
property should return the_password
attribute. - Implement the password setter by the
@property.setter
decorator.
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.password
property inside the__init__()
magic method
(not a_password
).
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 3. Capitolo 9
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Awesome!
Completion rate improved to 2.78
Challenge: Password Validation
Scorri per mostrare il menu
Note
The comments
The new code is below
andThe new code is above
will help you to find the new code.
Compito
Swipe to start coding
Let's implement password validation for your code!
- Define the
password
property by the@property
decorator. - The
password
property should return the_password
attribute. - Implement the password setter by the
@property.setter
decorator.
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.password
property inside the__init__()
magic method
(not a_password
).
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Awesome!
Completion rate improved to 2.78Sezione 3. Capitolo 9
single