So, you’ve learned what the ingredients of a program are: variables. But what do the instructions of a program look like?
If you assign a new value to a variable that was already assigned to some value, that’s like throwing out the existing value and putting in the new value.
Assigning a value to a variable means putting a value inside the box. In the Python programming language, you just assign a value to a variable without having declared the variable first, but you can’t typically do that in C, C++, or Java.
In some programming languages like C, C++, and Java, you have to declare (create) a variable before you can use it. It has no value (it’s “undefined”), but it has a name and data type.
String is a special data type that consists an array of characters, but the last character has to be a special one called a null character that indicates where the string ends.