Real Python
  • Start Here
  • Learn Python
    Python Tutorials →
    In-depth articles and video courses
    Learning Paths →
    Guided study plans for accelerated learning
    Quizzes & Exercises →
    Check your learning progress
    Browse Topics →
    Focus on a specific area or skill level
    Community Chat →
    Learn with other Pythonistas
    Office Hours →
    Live Q&A calls with Python experts
    Podcast →
    Hear what’s new in the world of Python
    Books →
    Round out your knowledge and learn offline
    Reference →
    Concise definitions for common Python terms
    Code Mentor →Beta
    Personalized code assistance & learning tools
    Unlock All Content →
  • More
    Learner Stories Python Newsletter Python Job Board Meet the Team Become a Tutorial Writer Become a Video Instructor
  • Search
/
  • Join
  • Sign‑In

Python Basics: Reading and Writing Files (Quiz)

Bartosz Zaczyński
Python Basics: Reading and Writing Files Bartosz Zaczyński
Course Slides (PDF) Sample Code (ZIP) Ask a Question
  • Contents
  • Discussion

Become a Member to join the conversation.

Course Contents

Overview
83%
  • Getting to Know Files in Python
  • Python Basics: Reading and Writing Files (Overview) 04:04
  • Opening and Closing Files 10:21
  • Understanding Text and Binary Files 07:18
  • Specifying the Character Encoding 09:46
  • Choosing the Line Ending 07:42
  • Exploring the Different File Modes 03:33
  • Reading and Writing Text Files in Python
  • Writing Text to a File 03:53
  • Retrieving Text From a File 02:46
  • Working With Multiline Files 05:08
  • Recapping Text File Operations 02:59
  • Reading and Writing CSV Data 10:33
  • Reviewing What You've Learned
  • Python Basics: Reading and Writing Files (Quiz)
  • Python Basics: Reading and Writing Files (Summary) 02:48

© 2012–2025 Real Python ⋅ Privacy Policy