13 lines
494 B
Markdown
13 lines
494 B
Markdown
|
|
||
|
Using classes to navigate between files in python is a common thing you will be doing. Hence, knowing when to create python classes is important as well as knowing how to use the methods created in the classes file.
|
||
|
|
||
|
---
|
||
|
For example:
|
||
|
|
||
|
```
|
||
|
import Car
|
||
|
```
|
||
|
|
||
|
if you have a `car.py` class file and you are trying to bring that into another `action.py` file.
|
||
|
|
||
|
Learn more about imports in python [here](https://www.codementor.io/@sheena/python-path-virtualenv-import-for-beginners-du107r3o1).
|