File I/O, String Parsing and Data Structures

Overview

In this lab, we will expand our knowledge of data structures, digging into the list. We will expand our understanding of logic to include compound conditions. We will build a simple application used to search and parse data from a basic text file.

outcomes:

In this lab, you will learn to:

  • Read a text file and parse the data from it using string methods.
  • Examine the list data structure.
  • Incorporate logic compound conditions.

Key terms and descriptions

Variable
A variable is a location that stores data.
String
Strings represent a letter or a word surrounded by single or double quotation marks.
For loop
A for loop is used when you are iterating over a sequence such as a list.
List
Lists stores multiple items in a single variable.