Now that you understand Python syntax and have been introduced to some Python best practices, let's apply what you've learned to a real-world application: writing data to a file.
So far, we've only displayed Python's output on the screen. In this section, we'll cover how to use Python to write data to a file.
In this section, we'll cover some of the finer points of file I/O in Python, including additional functions and the 'with' and 'as' keywords.