Python
debug:
import pdb- breakpoint :
pdb.set_trace() - step in : s
- step over : n
- return out of function : r
- next breakpoint : c
LAMBDA:
>>>g = lambda x: x*2 1
>>>g(3)
6
>>>(lambda x: x*2)(3) 2
6INSTALL SETUP TOOLS:
- IN POWERSHELL :
(Invoke-WebRequest https://bootstrap.pypa.io/ez_setup.py).Content | python -
INSTALL PACKAGES:
- PackageManager (PIP):
sudo apt-get install python-pip - Serial:
pip install pyserial - Guide to making packages