Python – Input/Output

Resources

Read or watch:

Learning Objectives

At the end of this project, you are expected to be able to explain to anyone, without the help of Google:

General

  • Why Python programming is awesome
  • How to open a file
  • How to write text in a file
  • How to read the full content of a file
  • How to read a file line by line
  • How to move the cursor in a file
  • How to make sure a file is closed after using it
  • What is and how to use the with statement
  • What is JSON
  • What is serialization
  • What is deserialization
  • How to convert a Python data structure to a JSON string
  • How to convert a JSON string to a Python data structure
  • How to access command line parameters in a Python script