Difference between '/' and '//' when used for division in Python

In Python 3.0, 7 / 2 will return 3.5 and 7 // 2 will return 3. The former is floating point division, and the latter is floor division, sometimes also called integer division.

Comments

Popular posts from this blog

Check MySQL query history from command line

Fixed: ImportError: No module named utilities.common.tools