[solved] – Question 97307
import os
# This program has read/write access to the WORKSPACE directory
filepath = os.path.join( os.environ[‘WORKSPACE’], ‘NewYorkTemps.txt’ )
# The testing system will let this program know how many lines to expect
num_of_lines = int( input() )
# Copy input into the file. Do not modify!
with open( filepath, ‘w’ ) as file:
for _ in range( num_of_lines ):
file.write( input() + ‘n’ )
# Write your program below
Expert Answer
OR

