QP School
Integer division in Python 3 - Printable Version

+- QP School (https://qomplainerzschool.lima-city.de)
+-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3)
+--- Forum: Python 3 Tutorials and examples (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=51)
+--- Thread: Integer division in Python 3 (/showthread.php?tid=5061)



Integer division in Python 3 - Qomplainerz - 07-25-2023

# In Python 3, dividing two integers results in a float if not evenly divisible
result = 7 / 3
print(result)  # Output: 2.3333333333333335