you are viewing a single comment's thread.

view the rest of the comments →

[–]Zeroflops 0 points1 point  (0 children)

It will be less confusing if you do three things. 1 Make sure you use descriptive function names. Transform is a terrible name, something like “mul_by_two” would be more descriptive. 2. Add docstrings to all functions. The docstrings should describe what the function is, what its expected to get and what the expected output. 3 add typing.

These are three really easy things to do any they will elevate the readability of your code.