Python Type Casting
What is type casting?
Python type casting allows to find the data type. It can be done by using type function. As we know, python is a object oriented programming language so, it uses classes to define the data's type of a variable.
Using type() function?
To find the type of data stored by a variable, write print (type(variable_name)). Type casting of all the data types are shown below.
Comments
Post a Comment