Week 3: February 13 - 17

Floating-Point Numbers

Although mathematics deals with real numbers of infinite precision, these numbers must be represented in a computer using a finite number of digits. We examine ways in which this can be done effectively, and some of the problems and issues that arise in doing so.

Week 3 Notebook

Python

  • break
  • continue
  • Error handling with try/except
  • List comprehensions
  • String concatenation

Quiz 2: Conditional Code and Functions

  • if statement
  • def statement
  • import statement
  • dir function
  • Comments

Sample Quiz 2