Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49520

Re: password protect file

References <mailman.4040.1372620358.3114.python-list@python.org> <76742ee4-c5d2-4326-b155-a15c385bb105@googlegroups.com>
Date 2013-07-01 08:25 +1000
Subject Re: password protect file
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.4047.1372631135.3114.python-list@python.org> (permalink)

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: password protect file Modulok <modulok@gmail.com> - 2013-06-30 13:25 -0600
  Re: password protect file gmsiders@gmail.com - 2013-06-30 15:17 -0700
    Re: password protect file Chris Angelico <rosuav@gmail.com> - 2013-07-01 08:25 +1000

csiph-web