for exercise number 3(writing) I write the code bellow :
my_list = [i**2 for i in range(1,11)]
my_file = open("output.txt", "r+")
Add your code below!
for item in my_list:
and I get the eror : "it's look like you're file doesn't contain each element from my_list on its own line."
and as result it'll add the numbers below to my output.txt :
I can't figure how does n81/n100/n121 generate?
the last line is my problem
I will appreciate any help here
Replace this line with your code.