I have this code:
import sys
cities = 'me, myself, eye'
company_types = 'WHAT, WHO'
with open("result.txt", 'w') as fid:
for city in cities:
for company_type in company_types:
fid.write(company_type.strip() + " in " + city.strip())
fid.write("\r\n")
I get this output:
<built-in method write of _io.TextIOWrapper object at 0x0000019E4C3017D0>
What is wrong with the code? How do I fix it?