Physics 212, 2019: Lecture 5

From Ilya Nemenman: Theoretical Biophysics @ Emory
Revision as of 14:58, 3 February 2019 by Ilya (talk | contribs) (Created page with " ==New Python Concepts== *Loops of different types (for and while). *We started talking about scopes: what happens to the variable ''i'' after the ''for'' loops finishes execu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

New Python Concepts

  • Loops of different types (for and while).
  • We started talking about scopes: what happens to the variable i after the for loops finishes executing?
  • Variables vs objects, yet again.
  • Vector math is always faster than element-by-element math -- we showed this in a simple script in class.