New course! Every coder should learn Generative AI!
Try a free lesson0
In Python 3, the division with / is always float (unless it is overridden for some custom type). Also, you (nearly) never mention types in Python, as it could lower the usefulness of the language (you can patch almost everything at run time)