Fundamentals of Python Programming I

Lecture Slides Lecture Slides (pdf) Lecture Slides (ipynb)

Tutorial Exercise Tutorial Exercise (pdf) Tutorial Exercise (ipynb)


This week we start learning about Python, another major language for data analysis. In the first lecture we look at core Python object types, operators, methods and functions. Some of Python fundamentals will be compared and contrasted to their counterparts in R.

Required Readings

  • Guttag Chs 2: Introduction to Python, 5: Structured Types and Mutability;

Additional Readings

  • Guttag Ch 3: Some Simple Numerical Programs.

Tutorial

  • Python object types and casting;
  • Application of methods and functions.

Assignment 3 (Blackboard)

  • Python fundamentals and control flow.
  • Due at 12:00 on Monday, 17th November (submission on Blackboard);
  • Rename the file from 03_assignment.ipynb to 03_assignment_lastname_firstname_studentnumber.ipynb before submission.