Responsive Ad Area

Share This Post

test

create list of dictionaries from two lists using for loop in python

I have two lists:
providers = [“a”, “b”, “c”, “d”, “e”]
ips = [“100.12.23.34”, “199.134.3.01”, “123.143.2.34”, “154.234.4.66”]

I want the out put to look like
[{‘provider_name’:’a’, ‘server’:’100.12.23.34′},…..]
How do i do this in python using for loop?


create list of dictionaries from two lists using for loop in python
create list of dictionaries from two lists using for loop in python
test
{$excerpt:n}

Share This Post

Leave a Reply

Your email address will not be Publishedd. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Skip to toolbar