How to get a relative path in Python

Here are the steps on how to get the relative path in Python including an explanation of what a relative path is.