Jul-01-2019, 01:07 AM
You need to add
Why did you still using Python 2.x? If you have digits after
from __future__ import print_function
and pass file
keyword to the print function, e.g. print(x, file=y)
or use y.write('{}\n'.format(x))
. This should work, but not tested. Why did you still using Python 2.x? If you have digits after
car
of truck
words, it would be better to use a regexp something like this re.compile("car\d+")
.