Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.016 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:text': 0.05; 'exit': 0.07; 'subject:file': 0.07; 'loop.': 0.09; 'sep': 0.09; 'subject:using': 0.09; 'finished': 0.15; 'code?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'received:209.85.214.174': 0.21; 'lets': 0.22; 'header:In-Reply-To:1': 0.25; 'question': 0.27; 'message-id:@mail.gmail.com': 0.27; 'dan': 0.29; "i'm": 0.29; 'docs': 0.33; 'to:addr:python-list': 0.33; 'tutorial': 0.33; 'another': 0.33; 'program,': 0.34; 'received:google.com': 0.34; 'clear': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'there': 0.35; 'option': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'mean': 0.38; 'to:addr:python.org': 0.39; 'received:209.85.214': 0.39; 'where': 0.40; 'header:Received:5': 0.40; 'stay': 0.61; 'back': 0.62; 'here': 0.65; 'sounds': 0.71; 'subject:get': 0.81; "'while'": 0.84; 'start.': 0.84 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=3VNadK/cNMF99Q4zkl7M+VNsKDxkq1Pk9LFTX/A/SPg=; b=VsiZh6V+VrmRPOlI1p3xVMG0sCR1cLohZu9stVQBkUxca/PpDJOm6RPG3Gn1jWiUrN 0cTULw9x3JPTgT5wq5/e3PxpCd9BoIZ1RdrIStO1yesqNXKLaaP6rWcBiZlACuJfQCHe GJn+2k5xaOu1vvuo/philoAGrSghbOigdF6LfapH7vH3Xk7rATh4mCxwt5NGZorWMqCt 4cBhfLo52LyBjufSsjc4R7108uehaYsfqljnKdlwjDPF0I2ls7V4dVhfTeUSVIo9Cmgs AG+soPfw0+muPnt1rOJ8B8ws2Iz9fnsn+HsAusZDXsA3BO0GqVFqo4vk/P+8JLfeJJnO PkBA== MIME-Version: 1.0 In-Reply-To: References: <3359a0e7-f7bb-4b1f-b586-e83f337566b7@googlegroups.com> Date: Wed, 19 Sep 2012 18:14:20 +1000 Subject: Re: using text file to get ip address from hostname From: Chris Angelico 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348042468 news.xs4all.nl 6847 [2001:888:2000:d::a6]:60173 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29470 On Wed, Sep 19, 2012 at 5:41 PM, Dan Katorza wrote: > > Hello again, > I have another question and i hope you will understand me.. > Is there any option where you can set the program to go back to lets say the top of the code? > I mean if the program finished the operation and i want to stay in the program and go back ro the start. > after any operation i want the option to do it again , go back to the main menu or full exit from the program, and i want it every time. > > i hope i'm clear :) Yep! Look up the docs and tutorial on "control flow" and "looping constructs". Sounds like what you want here is a 'while' loop. ChrisA