why is it when i put in this exact same line of syntaxes in both my own python interpreter and repl.it interpreter , it says
File "python", line 1, in
IOError: [Errno 2] No such file or directory: 'output.txt'
?it works in my exercise on codecademy
my_list = [i**2 for i in range(1,11)] my_file = open("output.txt", "r+")