using text file to get ip address from hostname

Chris Angelico rosuav at gmail.com
Wed Sep 19 04:14:20 EDT 2012


On Wed, Sep 19, 2012 at 5:41 PM, Dan Katorza <dkatorza at gmail.com> 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



More information about the Python-list mailing list