Python Data Types
Variables can hold values of different data types. Python is a dynamically typed language hence we need not define the type of the variable while declaring it. The interpreter implicitly binds the value with its type. Python enables us to check the type of the variable used in the program. Python provides us the type() function which returns the type of the variable passed. Consider the following example to define the values of different data types and checking its type. Standard data types A variable can hold different types of values. For example, a persons name must be stored as a string whereas its id must be stored as an integer. Python provides various standard data types that define the storage method on each of them. The data types defined in Python are given below. Numbers String List Tuple Dictionary In this section of the tutorial, we will give a brief introduction of the above data types. We will discuss each one of them in detail later i...