There is the following list of proxy servers:
['1.2.3.4:80', '12.13.14.15:3128', '123.123.123.123:8080'] How to make sure that all IP-addresses are in the following list:
proxies = {'http': '1.2.3.4:80', 'http': '12.13.14.15:3128', 'http': '123.123.123.123:8080'} I know that it is necessary to load the cycle with for , but how exactly I can’t figure it out.
proxiesyou have a dictionary (not a list), which is:{'http': '123.123.123.123:8080'}(the last value among duplicate keys in a constant (dict view) wins). - jfs