in the above programwe add two variables num_int and num_flostoring the value in num_new we will look at the data type of all three objects respectively in the outputwe can see the data type of num_int is an integer while the data type of num_flo is float alsowe can see the num_new has float data type because python always converts smaller data types to larger data types to avoid the loss of data example addition of string(higherdata type and integer(lowerdatatype num_int num_str " print ("data type of num_int:"type(num_int)print ("data type of num_str:"type(num_str)print(num_int+num_strwhen we run the above programthe output will bedata type of num_intdata type of num_strtraceback (most recent call last)file "python"line in typeerrorunsupported operand type(sfor +'intand 'strin the above programwe add two variables num_int and num_str as we can see from the outputwe got typeerror python is not able to use implicit conversion in such conditions howeverpython has solution for these types of situations which is known as explicit conversion explicit type conversionin explicit type conversionusers convert the data type of an object to required data type we use the predefined functions like int()float()str()etc to perform explicit type conversion this type of conversion is also called typecasting because the user casts (changesthe data type of the objects syntax(expressiontypecasting can be done by assigning the required data type function to the expression