How to get File System’s separator using Python

How to get FileSystem’s separator using Python problem You’re writing a program (e.g. AWS lambda) in Python that is using a file path and runs on various Operating Systems. For example, Windows OS uses a different separator in comparison with Mac OS. Operating System File Path example Windows C:DocumentsNewslettersSummer2018.pdf Mac OS /home/user/documents SOLUTION separator.py import […]