Complete the code to identify the main component that converts DC to AC in an EV powertrain.
The inverter in an EV powertrain converts [1] current to AC current.
The inverter converts direct current (DC) from the battery into alternating current (AC) to power the electric motor.
Complete the code to name the component that stores electrical energy in an EV.
The [1] is the main energy storage device in an electric vehicle.
The battery stores electrical energy that powers the EV's motor and other systems.
Fix the error in the statement about the EV powertrain component.
The [1] controls the speed and torque of the electric motor.
The controller manages the motor's speed and torque by regulating power delivery.
Fill both blanks to complete the description of the EV powertrain components.
The [1] converts DC to AC, while the [2] stores electrical energy.
The inverter converts DC from the battery into AC for the motor. The battery stores the electrical energy.
Fill all three blanks to complete the EV powertrain dictionary comprehension.
powertrain = { [1]: [2] for [3] in components if [2] != 'controller' }This dictionary comprehension creates a dictionary with component names as keys and their names as values, excluding the controller.