Complete the code to define the motor speed variable.
motor_speed = [1]We start motor speed at 0 before simulation.
Complete the code to simulate motor torque calculation.
torque = motor_current [1] motor_constantTorque is calculated by multiplying current by motor constant.
Fix the error in the simulation step size assignment.
step_size = [1]Step size must be a positive number, not zero or negative or string.
Fill both blanks to create a dictionary of motor parameters with speed and torque.
motor_params = {'speed': [1], 'torque': [2]The dictionary keys 'speed' and 'torque' map to motor_speed and torque variables.
Fill all three blanks to filter motor speeds above threshold and create a result dictionary.
result = {k: v for k, v in motor_params.items() if v [1] [2]
filtered_speed = result.get('[3]', 0)We filter motor parameters where value is greater than 10 and get the speed value.
