This repository has been archived on 2023-07-05. You can view files and clone it, but cannot push or open issues/pull-requests.
notes/Terminal Tips/Commands + Settings/Languages/Python/code/Classes.md

13 lines
494 B
Markdown
Raw Normal View History

2023-07-05 03:05:42 +00:00
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).