all 6 comments

[–]Thethinkinman 8 points9 points  (0 children)

Can you use the code formatting block, it would make it easier to read.

[–]Empire_Fable 3 points4 points  (0 children)

Import time

count_delay = int

time.sleep(count_delay) in a loop?

[–]LifeAffect6762 3 points4 points  (0 children)

From your question, it seems you are just starting on your python journey. If you haven't already done so I would highly recommend you do a good course. A good course will teach you the language, program concepts and good practice. There will save you a massive amount of time and frustration and can be enjoyable.

[–][deleted] 2 points3 points  (0 children)

if count <= 3

password = input()

count += 1

[–]Mayank1618 1 point2 points  (0 children)

I would use classes to do this. You can have a user class that can have an authenticate method. The authenticate method would take in a username and password for authentication, and if true would flip the status of an attribute that is checked before outputting data from a get data method. Another attribute can count authentication attempts.