PyAI Learn Türkçe

Module 7

Text and files

string methods, files, CSV, JSON

When you finish this module you can say:

I can read data from a file and save it back as CSV and JSON.

By the end of this module you'll be able to write a notebook that saves your notes to a file and loads them back when the program reopens.

Start

Lessons

6 lessons · ≈ 57 min

  1. Splitting and cleaning text9 min
  2. Reading from a file9 min
  3. Writing to a file9 min
  4. CSV: data shaped like a table9 min
  5. JSON: storing a dictionary9 min
  6. Project: Note-taking app12 min · project

Practice exercises

Short writing exercises, independent of the lessons: Go to the exercises

  1. A title fit for an address
  2. Lines with a word
  3. Numbered file
  4. Find who passed
  5. Keep the settings