What are varibles | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What are varibles

Please can someone explain what a varible is and what it does

19th Jul 2016, 9:51 AM
oscar537
oscar537 - avatar
2 Answers
0
It is a letter or combination of letters which can store information. ex: YEAR=2016; print(year); Output will be : 2016
19th Jul 2016, 10:53 AM
Tobias Wilfert
0
another way to say basically the same thing tobias said: think of a variable as named box in which you can put something. for example: a = 5 print(a) in the first line you are opening box named a and putting 5 in it. in the second line you send a as a parameter to function print which means that the box named a is to be opened and it's contents printed to the screen.
19th Jul 2016, 11:26 AM
RedAnt
RedAnt - avatar