Python provides a float() function that will attempt to convert any value to a float (including strings). n1 = 5 n2 = 2 # This performs integer arithmetic result = n1 / n2 assert result == 2 # Convert the numerator to a float, which results in floating point arithmetic result = float(n1) [...]
