- Use a for loop to process six parts.
- Number the parts from 1 through 6 in the printed output.
- Route odd-numbered parts to Pallet 1 and even-numbered parts to Pallet 2.
- Keep separate counters for how many parts reach each pallet.
- Print a production summary after the loop.
- Then change the batch size from 6 to 10 by editing only one variable.
ADM Python Practice • Practice 3
Production Loops & Batch Processing
Build a simulated production program that processes a batch of parts and alternates pallet destinations.
Practice Assignment
What You Need to Do
Browser Python Lab
Build and Test Your Program
Modify the starter code until all required behaviors work. No physical Workcell is needed.
Interactive Python Practice
Production Loops & Batch Processing
Editable Python Code
Output & Errors
Predict what will happen, then click Run Code.
Tip: Press Ctrl+Enter (Cmd+Enter on Mac) to run. The mock arm prints simulated Workcell actions instead of controlling hardware.
Success Criteria
Check Your Work
Submission
