Answers for "difference between % and // in python"

-1

difference between % and // in python

# The true div operator (//) return the quotien of a division
print(5 // 2)
# 2

# The modulo operator (%) returns the reminder of a division
print(5 % 1)
# 1
Posted by: Guest on March-13-2021

Code answers related to "difference between % and // in python"

Python Answers by Framework

Browse Popular Code Answers by Language