The code I wrote here below works, as in I got the green light.
But, when I look at the output.txt tab, it's empty. So it didn't write anything to it.
What's going on?
my_list = [i**2 for i in range(1,11)] my_file = open("output.txt", "r+") # Add your code below! my_file.open() for i in my_list: my_file.write("i\n") my_file.close()