Casting data type in python. The following code shows how to cast data type in python.
Code:
a = 12.23 x = str(a) print(type(x)) x = int(a) print(type(x)) x = int(a) print(type(x)) x = int(input()) print(type(x))