Python basics refresher

ITEC 4400/2160 Python Programming for Data Analysis,
Cengiz Günay

(License: CC BY-SA 4.0)

Prev - Introduction, Next - Data structures and performance

A crash course into Python

(from Ch 2 of “Data Science from Scratch” by Joel Grus)

  • Zen of Python
  • Installing
  • Virtual environments
  • Whitespace
  • Modules and import
  • Functions

Practice functions

Click here to join

Language basics

  • Strings
  • Exceptions
  • Lists
  • Tuples
  • Dictionaries (default, Counter)

Practice basics

Fork it this time, work in teams

Misc Python Oddities

  • Sets
  • Control flow
  • Truthiness
  • Sorting
  • List comprehensions
  • Zip and argument unpacking
  • Type annotations

Practice Misc Python Stuff

Fork it, work in teams

Home