To learn how to create, modify, delete variables of different types. Learn to use some basic numeric (int, float, and complex), string, and Boolean types that are built into Python.
For example, we can create a variable with a specific name. Once you create a variable, you can later call up its value by typing the variable name.
Python Variables
A variable is a reserved memory area (memory address) to store value. For example, we want to store an employee's salary. In such as case, we can create a variable and store salary using it. Using that variable name, you can read or modify the salary amount.
In other words, a variable is a value that varies according to the condition or input pass to the program. Eeverything in Python is treated as an object so every variable is nothing but an object in Python.
A variable can be either mutable or immutable. If the variable's value can change, the object is called mutable, while if the value cannot change, the object is called immutable. We will learn the difference between mutable and immutable types in the later section of this article.