password protect file

Chris Angelico rosuav at
Mon Jul 1 00:25:26 CEST 2013

On Mon, Jul 1, 2013 at 8:17 AM,  <gmsiders at> wrote:
> i just want something simple that basicly asks for a password and then replies to u if you are wrong nothing hevay just for learning exsperience
> --

Then your task is pretty easy. Look up these things in the Python docs:

* input (or raw_input if you use Python 2)
* if
* sys.exit

You can do it with those three.


More information about the Python-list mailing list