Exercise:04 Python variable and Its types
In Python, a variable allows you to refer to a value with a name. To create a variable use =, like this example:
x = 5
You can now use the name of this variable, x, instead of the actual value, 5.
Remember, = in Python means assignment, it doesn't test equality!
savings with the value 100.print(savings) in the script.
Comments
Post a Comment