What is the difference between / and % in python


#1



Replace this line with your code.


#2

When you do division, you get two things!

Quotient and remainder

for eg..

13 divided by 4 -
gives Quotient : 3 Remainder: 1

In programming (python 2.0)
The / gives the Quotient .
The % gives the Remainder .


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.