Please enable JavaScript.
Coggle requires JavaScript to display documents.
Python (list [] (append, del, insert, pop, remove, sort, sorted, reverse,…
Python
-
functions
-
-
default value
f(name,age=10)
optional argument
def f(name, age, hobby='')
if hobby: #empty evalutes to false
unknown arg count
f(name, age, hobbies)
- make a tuple
f(name, age, address)
** - make a dictionary
import
-
from **modulename import functionA, functionB
-
-
-
-
-
-
-