Coding Steps:
# 1. Declare Variables (Not required in Python!)
# 2. Get Values for Variables
# 3. Do Calculations
# 4. Display Results
- In Python, thereβs no separate declaration step. A variable is created, gets its value, and is initialized through assignment, all in one step.
- Note that each of the above coding steps begins with a # symbol.
- This is because they are comments which are ignored by the computer when it runs the program. Comments are used to explain what the code is doing.
Code Cases for Variable Names:
- Camel Case: The first letter of the first word is lowercase, and the first letter of each subsequent word is uppercase.
python
1myVariableName- Snake Case: All letters are lowercase, and words are separated by underscores.
python
1my_variable_name