Why can I not or how can I create initializers within classes?
I get the following error message when I try to define the class below within the transfer function:
Line x: "__init__" is an invalid variable name because it starts with "_" (Compile)
self.x = 10
What is this about?
If that is not a bug - is there anything where one could read about such restrictions? It is confusing that a few Python features just do not work.
The used environment is the Online Platform.