converting string to integer from file
<p>I am asked to read lines from one file and print every other line from that file to another file. This is what i have so far.</p>

<pre><code>my_file = open("thisFile.txt", "r")
out_file = open("thatFile.txt", "w")

for line in my_file:
    line = int(line)
    if line%2 !=0:
        print(line,file=out_file)     

my_file.close()
out_file.close()
</code></pre>
