Lite / Intelligent Robotic Systems / Week 3
Week 3: Lists and structured data
This week you will
- Slice, filter and transform lists, including with comprehensions.
- Load tabular data from a CSV file into lists and dictionaries.
- Combine modules, classes and dictionaries in a tested stores audit (module check).
Lessons
- Slice, filter, transform: lists at speed · about 35 min
A wheel encoder logs 10,000 speeds. You need the last minute, every tenth sample, and only the readings above 20 cm/s. Can you do each in one line? - From CSV file to records you can query · about 40 min
A test rig writes a CSV with a header row and 2,000 lines. How do you ask 'which runs drew more than 1.5 A?' without counting columns by hand? - Module check: the stores audit · about 45 min
The robotics lab's stores list says 120 M3 bolts. The shelf has 96. Your job: write the program that finds every mismatch before the next build day.