- Information
- AI Chat
Was this document helpful?
Python Data Types - qwerftghj
Course: Programming with PYTHON (CM5101)
9 Documents
Students shared 9 documents in this course
University: Government Polytechnic, Pune
Was this document helpful?
Python Data Types
Variables can hold values, and every value has a data-type. Python
is a dynamically typed language; hence we do not need to define
the type of the variable while declaring it. The interpreter implicitly
binds the value with its type
Example :
a = 5
The variable a holds integer value five and we did not define its
type. Python interpreter will automatically interpret variables a as an
integer 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.