Art of Data

1.3 Python

Python is the main programming language we’ll be using in this course!

You should have Python3 downloaded already; if not, refer back to this link.

Review (slides)

We will cover the basics of Python, which includes writing and running Python files.

⊕ variables, if/else, loops, functions

Lists and Dictionaries (slides)

List and dictionaries are structures used to store and organize data.

⊕ lists, list[i], list[i:j], len(list), iterating through lists

⊕ dictionaries, key-value pairs, adding and removing items, iterating through dictionaries

Reading Files

Python modules can be used to help us read files. It is crucial that you know how to iterate through and manipulate lists and dictionaries!

csv, reader, DictReader