i am creating a txt file in juypternotebook
%%writefile test.txt
hello this is my first line
hello this is my second line
after that when i am appending some lines in that txt file by writing the code
with open ('test.txt' ,mode = 'r') as f:
then this error appears
File "<ipython-input-9-e008d94f1356>", line 1
with open ('test.txt' ,mode = 'r') as f:
^
SyntaxError: unexpected EOF while parsing
please tell me why