i have written a python code in which i have already assigned variable 'emailentry' a string value. what i want to do now is add that string value in the last line of my text file known as 'wattpad.txt'
i have written this code
with open("C:\Users\BRS\Desktop\wattpad.txt", 'a') as outfile:
outfile.write(emailentry /n)
and getting error
File "C:\Users\BRS\Desktop\wattpad acc maker.py", line 41
with open("C:\Users\BRS\Desktop\wattpad.txt", 'a') as outfile:
^
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
pls help [Finished in 0.2s]