using text file to get ip address from hostname

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


On Wed, Sep 19, 2012 at 6:50 PM, Dan Katorza <dkatorza at gmail.com> wrote:
> i know about the while loop , but forgive me i just don't have a clue how to use it for this situation.

You've already used one. What you need to do is surround your entire
code with the loop, so that as soon as it gets to the bottom, it goes
back to the top.

Tip: You'll be indenting the bulk of your code.

ChrisA



More information about the Python-list mailing list