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


Groups > comp.lang.python > #49520

Re: password protect file

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.032
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'subject:password': 0.05; 'subject:file': 0.07; 'python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'input': 0.22; 'mon,': 0.24; '(or': 0.24; 'task': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'asks': 0.31; 'something': 0.35; 'received:google.com': 0.35; 'replies': 0.36; 'wrong': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'simple': 0.61; 'jul': 0.74; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=dK9wE5biUeobb0zR/PScFhoMVaj+5WLgnQ5xkuzTTZ0=; b=JMo1iE/5yMSxfCZ4JxFqlC4aMHrxMFOEnFDZGILSYlmv4l7HLzaYROQWeqSuky6SJd 96vk1vzPsp6IfqskGp5/aMKUJAkzRQ5C5OHq8k2cQ1Qa8hb9EeZXZ98peiHtsfmYdMjc gnCLfJR1JrS3+ayMD4SGaMu8hQJWf8jekmf8PPoKYaQanBDYIsuRDSS0mzXpJAmpfar9 74ZHGGjAlcIpAIVV6FVN33qXijUGJn+ICbjbKZjejfuWIWjJpt/AbNro+v8p8CinghKz HmAbhN8a2VAhi5efVTXAQWSq1PzqL7WSK4s4HoLZ1NLc2SP6harhU41La3OP7DP5YoRM QWPg==
MIME-Version 1.0
X-Received by 10.220.202.197 with SMTP id ff5mr8693930vcb.3.1372631126365; Sun, 30 Jun 2013 15:25:26 -0700 (PDT)
In-Reply-To <76742ee4-c5d2-4326-b155-a15c385bb105@googlegroups.com>
References <mailman.4040.1372620358.3114.python-list@python.org> <76742ee4-c5d2-4326-b155-a15c385bb105@googlegroups.com>
Date Mon, 1 Jul 2013 08:25:26 +1000
Subject Re: password protect file
From Chris Angelico <rosuav@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=ISO-8859-1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4047.1372631135.3114.python-list@python.org> (permalink)
Lines 14
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1372631135 news.xs4all.nl 15981 [2001:888:2000:d::a6]:49627
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:49520

Show key headers only | 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