Other Recommendations
In this lesson, we will see some recommended techniques of writing a Pythonic code.
If operators with different priorities are used, consider adding whitespace around the operators with the lowest priority.
Function annotations should use the normal rules for colons and always have spaces around the -> arrow if present.
Don’t use spaces around the = sign when used to indicate a keyword argument, or when used to indicate a default value for an unannotated function parameter.
When combining an argument annotation with a default value, however, do use spaces around the = sign:
Compound statements (multiple statements on the same line) are generally discouraged.