Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
So first of all, I want you guys to think of variables as they are boxes.
Let's think with that simple analogy, shall we?
I want you to think of variables as simple boxes.
And we know some facts about boxes which are, first of all, the box type.
We know that there are a lot of different boxes that may be out there.
There may be square boxes, round boxes, small boxes, even large boxes and so on.
Right.
So there may be different types of boxes.
And I just assume that you've seen some boxes in your life and you pretty much know that they are not
all the same.
And there are a lot of different types of them.
Do you agree?
So the first fact about boxes is that they have a type.
Second, each and every box should have its own name.
For example, imagine that you put a sticker on a box to distinguish it from other boxes.
A sticker which represents some name for the box like shoes, box, glove box, a box for books and
so on.
This will help you not to mess up all the boxes when you move the house.
And that would be the second fact for boxes, which states that boxes should also have a name.
Now, what would be the third fact about boxes?
We would say that each box may be empty or it may have something inside of it.
It may have some content.
Right.
So we can say that there are basically two main situations.
We can tell about the inside of a box.
Either way, it's empty or either it has something inside of it.
For example, a couple of your shoes, some books and so on.
So that's the third fact which tells that boxes should either be empty or they should have some contents
inside of it.
And the last fact about the enology, two boxes would be that boxes should be stored somewhere.
Simply think about it.
If you have some box, then these boxes located somewhere.
Right.
Either read seeds that your living room at your sleeping room, at the kitchen or wherever it may be.
These box should reside somewhere.
And the place where it resides is called the address of the box.
I mean, that makes sense, right?
And this address may be represented in different ways.
For example, if we take a look at our analogy, we can say that a box is addressed would be something
similar to your house address.
Can you specify where you live in some countries, state, series, street and so on.
So just like you specify your address where you live.
The same goes for boxes.
Each box has some address.
Now, once we've introduced the correct the mistakes of boxes, it will be much but much more easier
for us to learn water variables.
In fact, that should be so easy.
You'll be amazed how much these scary variables that you may or may not have heard of resembled these
simple boxes we've just mentioned.
So all of these stories, all of this analogy we've just introduced a minute ago is very similar to
how we can categorize variables.
So just like boxes, we can say that variables can be of different types.
We've said that there are different types of boxes in which you're going to put your box or your shoes.
So basically for a different type of things, different type of stuff, you're going to use different
types of boxes, right?
So the same goes for variables based on the type of the variable.
We're going to be able to store different types of data like integer, real numbers, character strings
and whatnot.
So next we can say that the variable should have its own name.
And we said that the variable is just sort of a box which has its own name, because we know that there
may be multiple boxes around and we want to be able to identify them by their unique name.
So every box has its own unique sticker.
And in a similar way, we can say that every variable will have its own unique name.
Now, which variable may also have some content inside of it?
Just like you can pack a pair of shoes, shirts or even vegetables in a box.
Similarly can be done in variables.
You can simply put some contents, some value inside a variable.
That's the whole point of variables to hold some value inside of it.
Now, each variable may have some content inside of it, just like you can pack a pair of shoes, shirts
or even vegetables in a box.
Similarly, you can put some contents inside a variable.
That's the whole point of variables to hold some value inside of them.
The variable contents is sometimes also called its value.
The variables of value.
And lastly, we also know that a variable should have some address where it will reside.
Right.
We need to have an address.
Some place usually should be a unique place where the variable is going to be stored.
So now you know, the top four features you should be familiar with regarding variables.
And in the next short section, you're going to be introduced with the process.
Using these variables in your programming language.
So without any further talking.
Let's move on to the next video.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.