[Tutor] Socket Module
Danny Yoo
danny.yoo at gmail.com
Sun Jul 19 01:09:37 CEST 2015
On Jul 18, 2015 3:50 PM, "Nym City via Tutor" <tutor at python.org> wrote:
>
> Thank you all for your responses. I have a follow up question:
>
> So if gethostbyname_ex() takes only a single hostname string, how can I
use it to go through a list of hostnames and get their IP resolution as an
output?
>
Look into loops. If you have a function that works on a single thing, you
can use a loop to apply that function for each element in a list. Any good
tutorial should show how to do this.
Let us know if you run into difficulties.
More information about the Tutor
mailing list