Code: Select all
with open("school_averages.txt", "x") as school_averages_dot_txt
# Creates a new file, but an error raised if one already exists with same name.Code: Select all
with open("school_averages.txt", "x") as school_averages_dot_txt
# Creates a new file, but an error raised if one already exists with same name.