Traceback (most recent call last):
File "<stdin>", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory: '/home/Desktop/myfile.txt'
open(r'home\usr\bin\Desktop\myfile.txt', 'w')
myfile = open('/home/usr/bin/Desktop/myfile.txt', 'w')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
FileNotFoundError: [Errno 2] No such file or directory: '/home/usr/bin/Desktop/myfile.txt'
File "<stdin>", line 1
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 4-5: truncated \uXXXX escape