1.
2. the parameter when defining a function is called a parameter, and the value passed in when using a function is an actual parameters(here are some values passed in)
3. functions output some data
5.the variablles inside the function are ‘local’, which only work inside the function, while the variables outside the function are defined as ‘global’. when the global is not declared inside the functtion ,the global variables do not work inside the function
4. python’s own definition is bulit-in
- nested functions in a function,
- then the variables in the outemost function are called enclousure if the variables in the outmost function are called in a subfunction then ’ nonlocal ’ is added to the definition
7.summary - the immutable type has int , float tuple ,string
variable types include dictionaries and lists
8. if the data passed in by the function is a copy,it will not affect the original data