SYNTAX
(“Python Crash Course”, 2023)
- \t ~ tab
- \n ~ new line
- \n\t ~ new line and start the next line with a tab
- My example:
- When writing long numbers, you can group digits using underscore.
- Example: number_people = 7_000_000_000 also 7_00_00_00_00_0 (when printed only the numbers will show) 7000000000
- You can assign values to more than one variable using a single line of code.
- Example : >>> a, b, c = 1, 2, 3
- All captial indicate a variable should be treated as a constant and never changed.
- Example: LEGAL_AGE = 21