Writing


#1



Is he answer supposed to be a syntax error


my_list = [i**2 for i in range(1,11)]

my_file = open("output.txt", "r+")

# Add your code below!
for i in my_list:
    my_file.write("%s \n" % str(i))

my_file.close()


#2

2 posts were merged into an existing topic: Writing


#3