Hi Python masters 🤝
I am having a weird issue, I have this:
The output from that is the following:
I don't really get why it outputs the IP at the end? Shouldn't it be an empty array?
I expect it to be an empty array, any idea what I am doing wrong?
I am having a weird issue, I have this:
Code
file = open(proxyList ,'r')
proxies = file.read()
file.close()
proxies = [s.strip() for s in proxies.splitlines()]
file = open(notWorkingProxyList ,'r')
notWorkingProxies = file.read()
file.close()
notWorkingProxies = [s.strip() for s in notWorkingProxies.splitlines()]
print proxies
print notWorkingProxies
for x in proxies:
if x in notWorkingProxies:
proxies.remove(x)
else:
print 'Proxy [' + x + '] is ok to use.'
print proxiesThe output from that is the following:
Code
['187.32.4.66:8080', '202.162.217.3:8080']
['187.32.4.66:8080', '202.162.217.3:8080']
['202.162.217.3:8080']I don't really get why it outputs the IP at the end? Shouldn't it be an empty array?
I expect it to be an empty array, any idea what I am doing wrong?
![[Image: 6KMyuYs.png]](https://i.imgur.com/6KMyuYs.png)



