I'm making this code that creates a file and writes on it, but i need this file do be created in the same folder that the .py file is located, because i'll need to send this to my profesor , so it need to be kinda of "customized" acording to where he'll download it. Currently, i'm working with this:
arquivo= open('C:\\Users\\cauej\\code\\PROJETO PY\\pedido.txt', 'w')
but i imagine that it wouldn't work on his computer, because it's using my director, but if the file were created in the same folder as the .py file, would work