Lesson 1: Naming Rules | Python Beginner Course 🐍



    Before writing real python code, we must make sure the code will run properly. One way of doing that is following naming rules when creating variables. I will list the rules below.

1. Must only contain letters, numbers, and underscores, other characters are unsupported.

2. Cannot begin with a number.

3. Cannot use python keywords.

Examples of Proper Naming

1. name

2. _age

3. User3

Examples of Bad Naming

1. 2user

2. user-name

3. for