In [1]: s = {f"https://something.asdfqwerasdfasfgqwefasdfasdf/{i}" for i in range(7748982)}
In [2]: import sys
In [3]: sys.getsizeof(s)
Out[3]: 268435680
In [4]: sum(sys.getsizeof(x) for x in s)
Out[4]: 797034036
all_urls = set(open("lots.txt").read().splitlines())
done = set(open('nohup.txt').read().splitlines())
with open("upd_lots.txt", "w") as ul:
for url in all_urls - done:
ul.write(url + '\n')
In [2]: D = (11.180339887498949+0j)
In [3]: complex(round(D.real), round(D.imag))
Out[3]: (11+0j)