SyntaxFix
Write A Post
Hire A Developer
Questions
/ performs an integer division in Python 2:
/
>>> 1/2 0
If one of the numbers is a float, it works as expected:
>>> 1.0/2 0.5 >>> 16**(1.0/2) 4.0