Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

you saved the definition of the vehicle class in a file called vehiclec…

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

Explanation:

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 .

Answer:

C. from vehicleClass import *