How to make every class in a new file?

I want to make sure that I have each new class was in a completely different, new file, as in sharp or Java.
Is it possible to implement it out of the box?
April 3rd 20 at 17:40
2 answers
April 3rd 20 at 17:42
Yeah, don't mean to sound rude - but the box in this case is cranial
@kamron.Lango, and I hope that banned the one who asks completely stupid questions and normal answers is rude. See "the Author of the question" no more than 18 years and therefore shit out of it still spills out in all directions. - Trey4 commented on April 3rd 20 at 17:45
@kamron.Lango, if your next question will be "How in Python to convert a string to a number?", You run the risk of once again run into rudeness. And, deservedly so.

And on "Habr Q&A" do a search and there are search engines (Google, Yandex, DuckDuckGo). First, use the search and only if can not find answer, ask question. - Larissa_Marquardt commented on April 3rd 20 at 17:48
April 3rd 20 at 17:44
Yes, of course you can.

And out of the box it already works too:

Suppose the structure of the project consists of three files
class Foo:
class Bar:
from foo import Foo
from bar import Bar

f = Foo()
b = Bar()

foo, bar in this case are called modules. These modules can contain any python code, including code that defines exactly one class :)

Find more questions by tags Python