What is a variable in programming?

M

mars

New member
Freecoin
130

​

A variable is a named storage location used to hold data that can be modified during program execution.

Example (Python):



name = "John"
age = 25
 

Richest Freecoded User

Most Freecoin

freecoded
freecoded
5,326 Freecoin
G
GwenJasmine
2,064 Freecoin
P
Peterparker87
1,851 Freecoin
J
Johnhendrick
1,551 Freecoin
M
mahlibeardman
1,057 Freecoin
S
speechhub
991 Freecoin
peterkester96
peterkester96
866 Freecoin
S
Smith16
738 Freecoin
A
Alfrenoe87
618 Freecoin
Davy200
Davy200
590 Freecoin
Top