We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcfca9b commit 31a0e02Copy full SHA for 31a0e02
1 file changed
10. classes/4.1. assignment_2-2.py
@@ -28,3 +28,14 @@ def increment_login_attempts(self):
28
def reset_login_attempts(self):
29
self.login_attempts = 0
30
31
+
32
+user = User('fazle', 'yazdan')
33
34
+user.increment_login_attempts()
35
36
37
38
+print(f"\nLogin attempts by the user are: {user.login_attempts}")
39
40
+user.reset_login_attempts()
41
+print(f"\nLogin attempts by the user after resetting: {user.login_attempts}")
0 commit comments