Type Conversion

Type conversion is the process of converting a data type into another data type. Implicit type conversion is performed by a Python interpreter only. Explicit type conversion is performed by the user by explicitly using type conversion functions in the program code. Explicit type conversion is also known as typecasting

x: int = 20
y = str(x)
z = int(y)
a = float(z)

name = "10"
other_name = int(name)
print(type(a))