M
M
Max 3422018-08-23 16:04:13
Python
Max 342, 2018-08-23 16:04:13

Working with a log file?

tell me how to display a message on the screen if the password is entered incorrectly for the third time.
Those. in the log file, a line with the text of an error like (password check failed for user) after appearing in the log file for the third time, the output of the text for the user worked.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Cheremisin, 2018-08-23
@leahch

It's probably trivial to start a counter, and count it up to three, then display an error.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question