Whitespace and Line Terminations
- Python uses whitespace indentation to denote scope without braces.
- It is bad practice to:
- Use tabs instead of spaces ðŸ˜
- mix whitespace types (tabs with spaces)
- line termination in python files is denoted with the standard
\n
- however early on in python to aid in transitions from Clang languages there is an optional usage of
;
especially to end a line and have multiple statements on a single line like this:
import datetime; print(f'{datetime.datetime.utcnow():%Y-%m-%d}')