1Variables

What is a Variable?

Variables allow us to assign specified values or take values from the program and process them. We actually wouldn't be able to program anything without variables.

#Example variables:

number = 10
number_2 = 5

As we can see, we have 2 variables with 2 values. 1. number is the variable with a value of 10 2. number2 is another variable with a value of 5

So if we wanted to process these values together, we would have to use the variables.

Notes:

  • Variables can be named anything (it's up to your personal preference, however name them something that you will understand what they do!)

  • Variables can store any value (Integer, Strings, Float etc)

Last updated