Have you ever heard about mutable and immutable data types ? and what about import time and runtime ?
In this episode we will learn how all of these fundamental python elements impact your functions and classes when you define default arguments and especially how to fix unexpected outputs and bugs, which might cost you many headaches and a lot of time.
By the end of this video you will be a better python developer and understand a Python Must Know: how to define default arguments in a pythonic style !!!
code: https://github.com/BuildWithData/Code...
Timestamps
00:00 | intro
01:26 | runtime vs import time
03:38 | _defaults_
04:42 | mutable default argument
06:24 | immutable default argument
09:38 | how to create default mutable argument for a function
11:29 | how to create default mutable argument for a class
––––––––––––––––––––––––––––––
Mitsubachi by Smith The Mister https://smiththemister.bandcamp.com
Smith The Mister https://bit.ly/Smith-The-Mister-YT
Free Download / Stream: http://bit.ly/mitsubachi
Music promoted by Audio Library • Mitsubachi – Smith The Mister (No Copyrigh...