Python allows you to start coding out your logic simply and then incrementally add more complexity. Here's a demonstration of how to start out with a simple class and then add getters and setters when you need to validate parameters in the class constructor.
I'll also show you how to use Enum, which is new in Python 3.4.
For reference to the code, please see the following post:
https://warrenwong.org/object-oriente...
En esta página del sitio puede ver el video en línea Learn Enum in Object-oriented Python de Duración hora minuto segunda en buena calidad , que subió el usuario Warren Wong 16 junio 2019, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 13,817 veces y le gustó 138 a los espectadores. Disfruta viendo!