What is the difference between Forward Slash ' / ' and Modulo ' % ' ? (Pyhton Language)
I've found that the output of operation with both Forward Slash ' / ' and Modulo ' % ' have the same function which will produce floats. But why they are different? I still don't get the meaning. Somebody please help me to find out the answer
To determine the quotient and remainder of a division, use the floor division and modulo operators, respectively.
Floor division is done using two forward slashes.
The modulo operator is carried out with a percent symbol (%).
Hi frnd one equvation 25%3:
25 dividing 3 for
The remaining for 1
This remaining is 1for answer the question and this modulus ok
Another slash '/'
Single slash is dividing ok
An double slash is 20//6
Answer is 3