Skip to content
How do I separate the class code into its own module from the import code?
Profile icon

I have tried adding folders and files to the, separating the class code and the import code, but I cannot get the import code to call the class code. In other words, I need help creating the proper directories in

You are viewing a single comment. View All
Profile icon

Lines 3 to 18 would go in their own file named and then you’d change your import statement to be from Car import * or from Car import Car, and then it should work as intended.