Conversion of one data type to another type is called type casting that means in programming at runtime we change the type of the data or variable which store data.
Possible Type casting -
int to float
float to int
int to string
numeric string to int
list to string
list to set
set to list, etc.
program -
a=3.12
print(a)
print(int(a))
# int to float
a=3
b=float(a)
print(b)
#string to int
a='2'
print(int(a))
#list to set
l=[1,2,1,2]
print(set(l))
3.12
3
3.0
2
{1, 2}