1Python Variables are like boxes that store some values
2
3Example of delcaring a variable:
4
5number = 1
6name = "Python"
7isUseful = True
8number_2 = 1.5
1variable_name = "what your variable stores."
2number = 633.098
3print(variable_name)
4
5#you can also print things together
6print(variable_name, number)
7
8#you can also put them in loops
9running = True
10while running:
11 for i in range(5):
12 print(number)
13 running = False
14
15#you can use variables for math
16number = 10
17number2 = 30
18print(number+number2)
19
1# Variables in Python are used to store some data in it and use it over and
2# over again
3# Variables can store Strings, Integers, Floats, Booleans
4var_string = "Hello World!"
5var_integer = 1234567890 # any number
6var_float = 3.14159 # any number with decimal value
7var_boolean = True # True or False
8
1variable1 = "value" # string
2variable2 = 1000000 # integer
3variable3 = 10000.0 # real/float
4variable4 = True # boolean: True or False