By Molly Bailey

What is a variable?

There are three types of variables; String, float and integer. You use these to communicate with the computer to tell it to do what you tell it to do!


String is a way of communicating with the computer in words and quotation marks. The words inside the quotation marks don't tell the computer what to do but says what it is eg username="molly" this tells the computer to print the username and says that the username is molly.


Float is another way of communicating with the computer but this time in decimals. This is a way of telling the computer what to do.