Can anyone explain, variables to me like I'm a 5year old kid,.. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

Can anyone explain, variables to me like I'm a 5year old kid,..

i don't know any terms, like compiler, size, int

20th May 2017, 8:23 AM
Jayant
Jayant - avatar
12 Answers
+ 11
Hey Guys I think u didn't interpreted his question rightly....He is saying that plz teach him like a 5 year old kid.....I think he is not 5 yrs old just he is asking to teach him in a way that he is 5 yrs old means he don't know anything
22nd May 2017, 8:03 AM
Nikhil
Nikhil - avatar
+ 7
A variable is like a box you put something in. You have to label the box so you can remember what's inside and find it again later. Eg: myBestToy = "dinosaur" print (myBestToy) *outputs dinosaur
22nd May 2017, 7:57 AM
Michael Foster
Michael Foster - avatar
+ 6
We should read questions carefully
22nd May 2017, 8:06 AM
Ekansh
+ 6
LoL I should be then
22nd May 2017, 10:36 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 5
5 years old???? Seriously???? In 5 years old. I didn't know how to play Logo O_O yet!! In dictionary... Compile is "convert to computer language" (So compiler is "Tool for convert to computer language") size is length? int is integer. You know integer,right? variable..... .....-_- (I advice you to go to html first -_-)
20th May 2017, 12:17 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 5
I also started when I was 7 but I was self learning.
22nd May 2017, 7:37 AM
Ekansh
+ 4
Oh @Nikhil you are right
22nd May 2017, 8:05 AM
Ekansh
+ 4
In grammar "He" can be used instead of "She"
27th May 2017, 1:02 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 2
@Ekansh kashyap you are wrong
26th May 2017, 4:11 PM
Jayant
Jayant - avatar
+ 1
You can think of a variable like a place holder for some thing (in memory), and the size of the variable is defined by its type. for example : int x; means reserve 2 bytes or 4 bytes (depending on programming language you use ) in memory for (x).
20th May 2017, 9:02 AM
Ahmed Albarakany
Ahmed Albarakany - avatar
+ 1
@Nikhil it is she, not he
26th May 2017, 4:10 PM
Jayant
Jayant - avatar
- 1
it's just like ur food dish
26th May 2017, 7:15 PM
Reza Mosallanejad
Reza Mosallanejad - avatar