Python Basics Exercises: Reading and Writing Files

Files play a key role in computing, as they store and transfer data. You likely come across numerous files on a daily basis. In Python Basics: Reading and Writing Files, you dove into the world of file manipulation using Python.

In this video course, you’ll practice:

  • Differentiating between text and binary files
  • Using character encodings and line endings
  • Manipulating file objects in Python
  • Reading and writing character data with different file modes
  • Using open(), Path.open(), and the with statement
  • Leveraging the csv module to manipulate CSV data

This video course is part of the Python Basics series, which is complements the book Python Basics: A Practical Introduction to Python 3. Additionally, you can explore other Python Basics courses.

Please note that throughout this course, you’ll be using IDLE to interact with Python. If you’re new to Python, then you might want to check out Python Basics: Setting Up Python before diving into this course.

What’s Included:

Downloadable Resources:

Related Learning Paths:

About Bartosz Zaczyński

Bartosz Zaczyński Bartosz Zaczyński

Bartosz is a bootcamp instructor, author, and polyglot programmer in love with Python. He helps his students get into software engineering by sharing over a decade of commercial experience in the IT industry.

» More about Bartosz

Each tutorial at Real Python is created by a team of developers so that it meets our high quality standards. The team members who worked on this tutorial are:

« Browse All Courses