Module 1 – Basic Programming

Objectives

  • To learn how to write basic Python programs involving variables, conditionals, iteration, functions in simple combinations
  • To learn how to trace basic Python programs involving lists, dictionaries and files
  • To learn how to implement good practices in software design (e.g., conventional naming standards, modular design)
Session Title Materials Exercises
Lecture 1: Variables and Functions
  • Arithmetic and Built-in Functions ( colab )
  • Variables ( colab )
  • Strings ( colab )
  • Type Conversion ( colab )
  • Functions ( colab )
  • Input and Output ( colab )
Lecture 2: Conditionals and Scope
  • Booleans ( colab )
  • If Statements ( colab )
  • Scope and Nesting ( colab )
  • More String Operations ( colab )
Lecture 2 HW ( colab )
Lecture 3: Lists and Loops
  • Lists and Ranges ( colab )
  • For Loops ( colab )
  • Accumulators ( colab )
  • List Methods and Mutability ( colab )
Lecture 3 HW ( colab )
Lecture 4: More Lists and Loops
  • Parallel Sequences ( colab )
  • Nested Lists and Loops ( colab )
  • While Loops ( colab )
Lecture 4 HW ( colab )
Lecture 5: Dictionaries and Files Lecture 5 HW ( colab )