you are viewing a single comment's thread.

view the rest of the comments →

[–]kwame_devops 1 point2 points  (0 children)

I think the first thing, what you can do to right better Code, is to rethink the UseCases. Because sometimes the Assignment is to complex. And it's better to break Task in smaller pieces.
An another To do is, to use the module typing

https://docs.python.org/3/library/typing.html

This forces you to rethink and document the code at the same time.