(Jul-12-2021, 02:18 AM)Pedroski55 Wrote: Can I ask why you use r ??To avoid problem with escape character
>>> path = 'C:\test' >>> print(path) C: est >>> path = r'C:\test' >>> print(path) C:\testCan also write it like this
C:\\test
or other way C:/
both work,just not singe \
. On Linux usually don't have this problem.
korenron Wrote:I used the first one - do I need to check the second one also ?No,the first is the newest and preferred one with pathlib tutorial
It was just to show how it was done with OS module.