Core Lessons Index

Chapter : Core Lessons Index

Index to Core Lessons

face Josiah Wang

Where was that topic that I previously saw buried somewhere in the core lessons?

Here are some easy access links to find the material you are looking for.

Use your browser’s search function to find a certain keyword/topic.

Basic concepts and elements

Built in data types and objects

Operators

  • Assignment operator (=) [2:6.1]
  • Artihmetic operators [2:5.1]
  • Comparison operators [3:2.1]
  • Logical operators (and, or, not) [4:2.1]
  • Shortcut (augmented) assignment operator [5:2]
  • Membership operator (in) [6:3.5]
  • Identity operator (is) [7:2.4]
  • Operator precedence [2:5.3]

Statements

Selection (choice)

Repetition (loops)

Functions

  • Function calls [3:6]
  • Built-in functions [3:7.1]
  • import functions from modules/packages [3:7.2]
  • Defining functions [5:3]
  • Positional arguments, default arguments, keyword arguments [5:5]
  • Function scope, stack trace [5:6]
  • Recursion [7:6]
  • Advanced function features:
    • Arbitrary number of arguments [10:4.2]
    • Positional-only arugments, keyword-only arugments [10:4.4]

Strings

Sequences

Sets

Dictionaries

Object-Oriented Programming

File handling

Exception handling

Modules and packages

Functional programming

Python modules

Command line arguments

  • Reading command line arguments (sys.argv) [9:6.5]

Development Practice and Tips

Software testing

  • assert statement [5:10.3]
  • Test Driven Development [6:9.1]
  • Breakpoints [6:9.3]
  • Python debugger (pdb) [6:9.3]
  • Input validation, Code robustness, Look Before You Leap (LBYL), Easier to Ask for Forgiveness than for Permission (EAFP) [8:9.6]
  • Unit testing [10:8]

Style guides

Exercises and applied problem solving

  • Subscripts from/to linear indices: [2:10]
  • Selection (Biggest number, leap year validator, thermostat program) [3:4]
  • While loops (Square root estimator, Newton’s Method) [4:4]
  • While loops with break:
    • Solutions for Newton’s Method [4:5.6]
    • Prime numbers [4:6]
  • Refactoring exercise [5:4]
  • List (Increment integers in list) [6:3.3]
  • For loops exercise (Pretty patterns) [6:4.6] [6:4.7]
  • List and loops (The smallest number, smallest number divisible by 7, triangle list, cumulative sum, Fibonacci Sequence, Suffixes) [6:5]
  • Strings (Palindromes, Replace string with blanks) [6:8]
  • String methods
  • List methods (Parenthesis checking) [7:3.6]
  • Dictionaries (Employee Database, Translation Lookup Table) [7:5]
  • Sets (Find overlapping words in Frozen) [8:2.6]
  • Recursion (Factorials, Fibonacci sequence) [7:6]
  • Exception Handling (list of fruts, opening a file) [7:7.5]
  • File Manipulation
  • Object-oriented Programming
  • Input validation [8:10.5]
  • enumerate (Get word positions) [9:4.2]
  • zip (Concatenate feature labels) [9:4.4]
  • List comprehension [9:5.2] [9:5.3]
  • Set comprehension [9:5.5]
  • Functional programming