Python3 basics
Published: 2021-02-12
Python3 tutorial
Python download
Python3 built-in functions
Base
- Use indentation instead of {}
- The end of the statement is not required;
- list=[…] method len()/append()/insert()
- tuple=() immutable list
- map={key:value,key:value…} method key in map/get(key,defaultValue)/pop(key)
- set=set([…]) method add(key)/remove(key)
function
- Data type: int(v), float(v), str(v), bool(v)
- Empty statement: pass
- Immutable object: None
- Variable parameters: *args, receives 1 tuple
- Keyword parameter: **kw, receives 1 dict