Datatype Conversion | Typecasting

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

2 Likes