Lesson 11 – Naming Variables

How Should We Name Variables?

Variable names must follow certain rules. • No spaces • No special characters • They must start with a letter For example, this will NOT work:
player health = 100
Spaces are not allowed.
In Python, the most common naming style is called snake_case. Snake case means: • All lowercase • Words separated by underscores Example:
player_health = 100
Another naming style you might see is camelCase. Camel case removes spaces and capitalises each new word:
playerHealth = 100
In Python, snake_case is preferred.
Your Task:

Create a variable that stores the player’s health using proper Python naming rules. Use snake_case. Set it equal to 500 and print it.
Create a correctly named variable
# Write your code below