QUESTION IMAGE
Question
you saved the definition of the vehicle class in a file called vehicleclass.py. which line of code will allow you to use the class in another program? from vehicle import from import vehicleclass from vehicleclass import from import vehicle
Brief Explanations
In Python, to use classes defined in a separate .py file in another program, the correct import syntax is to use from <filename_without_extension> import . Here the file is vehicleClass.py, so we should use from vehicleClass import .
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
C. from vehicleClass import *