Course “Python: Text Input/Output Fundamentals”

Course updated on August 5, 2024

Subscribe

Access this and all courses with a subscription

What's included

Theory: 6 lessons
Exercises: 0
Questions: 0
Self-study tasks
Extra materials
Extended materials for 6 lessons

Description

In this course, we will study the basics of text input/output. You will learn about file descriptors and context managers. Finally, you will learn the basic techniques and tools for reading and writing data into a file. The basics of test I/O will help when working with files and the file system using different modes and context managers. This course is suitable for those who are still learning Python. To ease the learning process, it's a good idea to learn the basics of Python and the different types of collections: lists and dictionaries.

You will learn

  • Proper file handling
  • Read files and write data to them
  • Use files as context managers

Syllabus

1

Introduction

Learning about the topics, goals, and objectives of the course

2

Opening and closing files

Learning to open and close files manually and automatically

3

Writing and reading

Learning how to write and read text files

4

Line-by-line reading and writing

Learning to work with files line-by-line and iterate them while reading

5

Context managers

Learning how to use context managers to work with files correctly and safely

6

Conclusion

Summarizing the results of the course

Course Cover
  • Run code right in the browser
  • Lifetime access
  • Learn at your own pace
Subscribe

Access this and all courses with a subscription