password protect file

Chris Angelico rosuav at gmail.com
Sun Jun 30 18:25:26 EDT 2013


On Mon, Jul 1, 2013 at 8:17 AM,  <gmsiders at gmail.com> 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.

ChrisA



More information about the Python-list mailing list