Complete the code to set the depth of cut to 2 mm.
depth_of_cut = [1] # in millimeters
The depth of cut is set to 2 mm by assigning the value 2 to the variable depth_of_cut.
Complete the code to set the step-over to 40% of the tool diameter.
step_over = tool_diameter * [1] # step-over as fraction
Step-over is set to 40% of the tool diameter by multiplying tool_diameter by 0.4.
Fix the error in the code to calculate the number of passes needed for a given total depth and depth of cut.
passes = int(total_depth / [1] + 0.999) # round up to next whole pass
The number of passes depends on dividing the total depth by the depth of cut, not step-over or other values.
Fill both blanks to create a dictionary showing passes and step-over in mm for a tool diameter of 10 mm and depth of cut 2 mm.
settings = {'passes': int(total_depth / [1] + 0.999), 'step_over_mm': [2] * tool_diameter}The number of passes is calculated using depth_of_cut. Step-over in mm is 40% (0.4) times the tool diameter.
Fill all three blanks to create a dictionary comprehension that maps tool names to their step-over in mm, only if step-over is less than 5 mm.
step_overs = {name: diameter * [1] for name, diameter in tools.items() if diameter * [2] [3] 5}The step-over fraction is 0.4. The condition filters tools where step-over is less than 5 mm, so the operator is <.
