Why is it not possible to write nice and good pythonic code?
As soon as new content such as decorators and private variables are introduced, they should continue to be usable in the code during further exercises and not only during the session in which the topic is dealt with.
For example:
I am forced to write:
def get_class_value(self):
return self.class_value
instead the better way in my opinion where:
@property
def class_value(self) → str:
return class_value
Or another example, if I output something with a clean print(f" This is {value}")
it is wrong. Instead, I have to write print(value).
This would mean that we would not only learn the syntax of the language. But also to write the code cleanly and practically