Hello and welcome to this video.
In this video I'll be talking to you about a very important concept in computer programming called variables.
Variables are very important.
They allow you to store various pieces of information that you can use for your application.
If you look at big large applications like Facebook Instagram Twitter and a host of others they all
use variables to store and retrieve information.
Even your bank when you go to get some money from the bank or from the machine it all stores information
and retrieves information.
All of that is done using variables.
So what is a variable.
Variables basically is a holding container that is used to store a value that can be referenced as of
when required.
The value that the variable stores can vary.
That means they can change hence the name Variable variables are parts of your computer's memory where
information can be stored the variables on giving names in order to identify them.
We then use the names to retrieve the information that the variable stores variables can hold values
of different types.
That means they can store number related values.
They can also store string or text related values before creating variables is good to know.
Some common convention when you are naming your variables variable names are case sensitive so you call
Be careful where you give your variable names.
For example if you name a variable H and then try to reference it using capital letter A.
A tool not respond because they are treated as two different things.
So make sure when you're creating variables you reference them using the exact name and case that you
have created them in names in variables can be letters that can be alphanumeric so they can be letters
and contain numbers.
They can also contain signs like a dollar sign or the underscore variable names can not start with a
number.
You can embed a number in your variable name but you cannot start it with a number.
For example you can call.
You can call your variable 2 4 7 learning.
You can start a variable with lowercase word.
If you have a variable that has two words you can start it with the first letter being lowercase and
then you can add the additional letters with an underscore.
Doing it this way makes it a snake case.
So when you have two words separated by an underscore for a variable name is called a snake case.
You can also represented in camel case camel case.
Basically means the first word is lowercase and the second word becomes uppercase.
They call it camel case because it's got it looks like the hump of a camel.
Also when you name your variables try to give your variable descriptive names that indicates what type
of data or things that the variables are actually stored.
For example if you are creating a variable regarding the score that in game stores you can call a game
on the score score that is a good descriptive name for the type of information that that variable stores.
Also when you are creating variables it is very important to know that you can not use the python reserve.
Keywords reserve key words these are words that the actual Python programming language uses for different
things so you cannot use them.
So this is a table showing you the key words in the pie.
Some programming language.
These are words that you cannot use as variable names.
So that's it for this video on the introduction to variables.
Thanks for watching and bye for now.