Containers with Names
A variable is a container that holds a value, with a name you choose. Once a value has a name, you can use it anywhere by that name.
Assignment means putting a value into a variable. The = sign does the storing. It is not the equals sign from math class. Read village = "Kumasi" as: the name village now holds the text Kumasi.
✦ No quotes on names
print(village) prints what the container holds. print("village") prints the word village itself. Names are unquoted; text is quoted.
Mark this lesson complete
Signed in, your progress follows you to every device.