The result of any calculation involving int and float is promoted to a float:
>>> 3.0 + 1
4.0
You can read more about Python's number types in the Python documentation.
The result of any calculation involving int and float is promoted to a float:
>>> 3.0 + 1
4.0
You can read more about Python's number types in the Python documentation.