Lite / Building Machines That Respond / Week 2
Week 2: Python fundamentals
This week you will
- Write, run and edit a Python program that prints a calculated result with its unit.
- Explain what the interpreter does with each line, top to bottom, and trace a program with a variable table.
Lessons
- Your first Python program: battery runtime · about 40 min
Your sensor node has a 2000 mAh battery and draws 250 mA. Can six lines of Python tell you when it dies? - How the interpreter reads your program · about 30 min
You compute current = voltage / resistance, then change the voltage. Does current change too?