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
/ is for division purpose while % is used to find reminder.
forward' / ' will give the quotient of operation modulo will give the reminder of operation for example 10/2 = 5 10%2=0(gives reminder)
/ is used to get quotient. % is used to get remainder
initially % i thought this is percentage..damn ;)
/ is for division whereas % is mod operator which gives remainder..
Forward slash(/) gives the answer in float, while modulo(%) divides and gives the remainder.
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 (%).
What is the point in the mod operator.
Hi frnd one equvation 25%3: 25 dividing 3 for 6*4= 24 Also 25-24=1 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 6*3=18 20/6=3 20/6=3 3+3=6 6/3=3 Answer is 3
'/' is used to get remainder '%'is used to get quotient
Bug: Sololearn notification is still showing number in the notification icon even i did mark as read
Finished python for beginners
Izzy the iguana code coach
C++ Question re stringstream
Why sometimes 0 is printed?