401 Class-01
Pain vs Suffering
- pain comes along with growth
- suffering is pain with no reason
Big 0 Nation
- performance/complexity of an algorithm
- O(1) execute in same time regardless of size
- O(N) grow linearly and in direct proportion
- O(N²)directly proportional to square of size
- O(2^N) doubles with each addition
Names and Values in Python
- Python is a simple language
- Names refer to values
- Multiple names for a single value
- reassigned independently
- values live until no references
- assignment never copies data
- changes visible through all names
- mutable aliasing
- immutable values cant alias
- references can be more than names
- any name can refere to any value
- names have no type, values have no scope
Home