Skip to content
Advertisement

If Statement depending on the contents of a .txt file – Python 3.9

JavaScript

Whenever I run the program, I don’t get an error message. However, when I type in what I have just set or set before as the password (in the txt file) or what is printed in the terminal, it sleeps the program like I got it wrong. I’ve posted this before and it was too long, so it’s shortened now. This is just revision for my assessment.

Advertisement

Answer

For example you can do:

JavaScript

Tell me if it works!

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement