What should I use a class for Python?

As a rule of thumb, when you have a set of data with a specific structure and you want to perform specific methods on it , use a class. That is only valid, however, if you use multiple data structures in your code. If your whole code won’t ever deal with more than one structure.

Sizin İçin Seçtik  How tall are 5G cell towers?

Leave a Reply

Your email address will not be published. Required fields are marked *