Year 11

Programming 6: Dictionaries and datafiles

Lessons (12)

  • 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 Slide deck
    1 Worksheet
    1 Quiz
    1 Video
  • 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.

    1 Slide deck
    1 Worksheet
    2 Quizzes
    1 Video
  • 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.

    1 Slide deck
    1 Worksheet
    2 Quizzes
    1 Video
  • 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.

    1 Slide deck
    1 Worksheet
    2 Quizzes
    1 Video
  • In this lesson, we will learn what CSV files are and how to use them. We will also learn how to read data into a list and a 2D list. Finally, we will complete a challenge working with the data.

    1 Slide deck
    1 Worksheet
    2 Quizzes
    1 Video
  • 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.

    1 Slide deck
    1 Worksheet
    2 Quizzes
    1 Video
  • 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.

    1 Slide deck
    1 Worksheet
    2 Quizzes
    1 Video
  • In this lesson, we will be introduced to the final programming project of this course: programming a game called Battle Boats.

    1 Slide deck
    1 Worksheet
    2 Quizzes
    1 Video
  • In this lesson, we will design our Battle Boats game using either Pseudocode or Flowchart in preparation for programming the solution in the next lesson: 'Battle boats code'.

    1 Slide deck
    2 Quizzes
    1 Video
  • In this lesson, we will code our Battle Boats game. Demonstrations and solutions are provided to give us support if needed, and it is likely to take more than an hour to complete the coding.

    1 Slide deck
    2 Quizzes
    1 Video
  • In this lesson, we will focus on creating and using a test plan to test our Battle Boats program.

    1 Slide deck
    1 Worksheet
    2 Quizzes
    1 Video
  • In this lesson, we will complete an evaluation of our Battle Boats program.

    1 Slide deck
    2 Quizzes
    1 Video