Python 101 - Expanding Paths and Variables
Working with file and folder paths in Python can take time and effort. Fortunately, the Python programming language has a couple of great packages to help you!
This tutorial will teach you how to expand an initial path component, such as a tilde (~). You will also learn how to expand/replace environment variables such as $USERNAME
or $TEMPDIR.
You will le…
Keep reading with a 7-day free trial
Subscribe to
The Python Papers
to keep reading this post and get 7 days of free access to the full post archives.