VarName = "Value" VarName = 56 VarName = True
Here is what the above code is Doing:
1. We create a variable named “VarName” and set it equal to a string.
2. We change the value of “VarName” to an integer.
3. We change the value of “VarName” to a Boolean value.
You can use any data type for a variable, and you can even change the data type of a variable after you’ve already set it.
Note: You can’t use a reserved word as a variable name. For example, you can’t use “print” as a variable name.
Instructions
1.
Create a variable named “my_variable” and set it equal to the string “Hello!”.
2.
Create a variable named “my_int” and set it equal to the integer 7.
3.
Create a variable named “my_float” and set it equal to the float 3.14.
4.
Create a variable named “my_bool” and set it equal to the Boolean value True.