Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Discover seven essential techniques and idioms that experienced Python 3 programmers utilize but may not be immediately apparent to newcomers. Explore how to make your programs more reliable, faster, and easier to maintain while avoiding common pitfalls. Dive into code examples that cover topics such as code execution, empty lists, sentinel objects, floating-point arithmetic, number types, decimals and fractions, failure modes of floats, binary representation of floats, computational geometry, and Python quirks. Learn about chain comparisons and how to reduce work in your code. Gain valuable insights that will set your Python journey on the right path and enhance your programming skills.
Syllabus
Introduction
Code Execution
Empty Lists
Sentinel Objects
No tradeoffs
Floatingpoint arithmetic
Number types
Decimal and fractions
Failure modes of float
Floats are binary
Decimals are floatingpoints
Computational geometry
Sign of the determinant
Demonstration
Floating point numbers
Python quirks
Python idioms
Chain comparisons
Reduce work
Taught by
NDC Conferences