Data types specify the differrent sizes and values that can be stored in the variable. For example, Python stores numbers, strings, and a list of values using different data types.
Python is a dynamically typed language. Therefore, we do not need to specify the variable's while declaring it. Whatever value we assign to the variable based on that data type will be automatically assigned. For example, name = 'John' here Python will store the name variable as a str data type.
No matter what value is stored in variable (object), a variable can be any type like int, float, str, list, set, tuple, dict, bool, etc.</