Variables in Python
|
|
| Variables in Python |
A variable allows you to store a value by assigning it to a name, which can be used to refer to the value later in the program. For example, in game development, you would use a variable to store the points of the player.
To assign a variable, use one equals sign
user = "Joel"
In given example we assigned string "James" to user variable.