import os
# This program has read/write access to the WORKSPACE directory
filepath = os.path.join(os.environ['PATH'],"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
Well, here it is.
Comments
Leave a comment