figure output of program - on executionprogram - gives an error as shown in figure informing that the interpreter cannot convert an integer value to string implicitly it may appear quite intuitive that the program should convert the integer value to string depending upon the usage howeverthe interpreter may not decide on its own when to convert as there is risk of loss of information python provides the mechanism of the explicit type conversion so that one can clearly state the desired outcome program - works perfectly using explicit type castingprogram - program to show explicit type casting #program - #explicit type casting priceicecream pricebrownie totalprice priceicecream pricebrownie print("the total in rs str(totalprice)outputthe total in rs similarlytype casting is needed to convert float to string in pythonone can convert string to integer or float values whenever required program - program to show explicit type conversion #program - #explicit type conversion icecream ' brownie ' #string concatenation price icecream brownie print("total price rs price#explicit type conversion string to integer -