Differentiate between ‘%’ and ‘//’ operators in Python with suitable example.
Answers
Answered by
0
Explanation:
Float Division : Divides and returns the integer value of the quotient. It neglects the digits after the decimal.
divide=10//3
OUTPUT : 3
% divides and returns the remainder.
Example:
13 % 2 = 6 and reminder is 1.
% known as modulus
Similar questions