Python Factory

Drag machines onto the floor and edit their fields. Every machine you place becomes a line of real Python on the right, top to bottom.

Python equivalent

factory_output.py

    
Try this: place a variable, a print, and an if machine so the floor reads top-to-bottom as: set a number, check it, then report it.
Waiting for print, variable and if to all appear
Actually executes the machines in order
Output will appear here after you run the program.