all repos — notes @ 972d0b30154c86443b0ccd410a897cec230adb29

My notes, written in md and LaTeX

misc/python.notes.md

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# Chapter 5
  

## Other Numeric Types

### Decimal Type
  - The Decimal class provides useful features to work with decimals with fixed
    precision.
### Fraction Type
  - Fraction and Decimal type provide more accuracy and simplify results.
    automatically
### Sets
  - They are unordered, immutable, unique collection of objects and follow the 
    mathematical definition of sets.
  - They behave like valueless dicts.
  - A literal set is represented by `{1,2,3}`