Skip navigation
New interactive curriculum plans and website

Oak National Academy Logo

Unit Overview: Programming 6: Dictionaries and datafiles

Lessons:

12 lessons

Records and dictionaries

In this lesson, we will be introduced to two new data structures: a record and a dictionary. The focus of this lesson is on records and how these can be created and used in Python to form a database. We will be shown how to use a dictionary as a record before creating a 'database' using dictionaries within a list.

  • 1 Quiz
  • 27m Video
  • Presentation(PPT)
  • Worksheet
  • Transcript

Dictionary challenge

In this lesson, we will have the opportunity to use a dictionary data structure in a new context. We will create a Caesar cipher encryption program using a dictionary as the cipher wheel. This mini project will allow us to develop our programming skills through an appropriate challenge.

  • 2 Quizzes
  • 14m Video
  • Presentation(PPT)
  • Worksheet
  • Transcript

Reading text files

In this lesson, we will be introduced to text files. The focus will be on reading text files, and how the data from a text file can be used within a program. We will be stepped through the key methods that are used for reading text files in Python, before we complete two text file challenges.

  • 2 Quizzes
  • 13m Video
  • Presentation(PPT)
  • Worksheet
  • Transcript

Writing to text files

In this lesson, we will continue to explore text files by looking at how to write text files and how to append text files. Live coding will be used to introduce the two new concepts and mini challenges are used to allow us to test our understanding of them.

  • 2 Quizzes
  • 9m Video
  • Presentation(PPT)
  • Worksheet
  • Transcript

Write to CSV files

In this lesson, we will learn how to write to CSV files. We will work with 1D and 2D lists, before converting them to string and writing them to CSV files. There are lots of list challenges this lesson, which should help to enhance skills in preparation for the final project.

  • 2 Quizzes
  • 19m Video
  • Presentation(PPT)
  • Worksheet
  • Transcript

Being a programmer

In this lesson, we will discuss the good habits of a programmer before being reminded of why some of the key aspects are good habits. We will also hear from industry programmers about their own good practice. We will then look at alternative approaches to programming solutions.

  • 2 Quizzes
  • 16m Video
  • Presentation(PPT)
  • Worksheet
  • Transcript