When you are using variables in Python, you need to adhere to a few rules and guidelines.
Breaking some of these rules will cause errors.
Other guidelines just help you write code that's easier to read and understand, so be sure to keep
these rules so.
Variable names.
So variable names can contain only letters, numbers and underscores.
Here, variable names can contain only letters.
Numbers.
And underscores.
They can start with a letter or an underscore, but not with a number.
So as I said, variable names cannot start with number.
So here, let's try this one.
Var.
Here.
As you can see here, Rozelle.
Rozelle.
And in the end of statement expected.
So as you can as you can see here, we are getting an error because variable names cannot start with
a number.
So, for example, you can also call this message one, it's okay, but you cannot call one message.
Actually, let's try this here.
Message one.
As you can see, we are getting no errors.
But you cannot.
Right?
Name your variable one message or one message without underscore.
Here and spaces are not allowed in variable names.
So here, message here.
Let's write this.
My message.
And here this is a this is okay variable name, but we make space here.
We will get an error.
Instead of using space.
You can also use underscores and you will get no errors here.
Avoid using Python keywords and function names as variable names.
For example.
Do not use the word print as a variable name.
Python has a reserved for a particular programming and programmatic purpose.
And the variable names should not be short but descriptive.
For example, the name is better than N right and the student name here.
Student name is better than student name is better than s n here.
Right.
So.
And name length.
Name length is better than length.
Length.
Of length.
A person's.
Person's name.
And also be careful when using the lowercase letter L and uppercase letter L, because they will.
They could be confused with the numbers one and zero.
It can take some practices to learn how to create good variable names, especially as your programs
become more interesting and complicated as you write more programs and start to read through other people's
code, you will get better at coming up with meaningful names.