Converting one datatype into another.
We cannot convert every datatype into integer datatype.
Example: -
x =57 → int datatype
y=float(x) → converting to float
print(y)
Output: -
57.0
Converting one datatype into another.
We cannot convert every datatype into integer datatype.
Example: -
x =57 → int datatype
y=float(x) → converting to float
print(y)
Output: -
57.0