0

Can someone explain quotient to me?

I’ve just finished my first course and don’t quite understand its use in code.

4th Oct 2021, 3:49 PM
Alexis
3 ответов
+ 4
Hi Alexis! In Python, quotient means the resultant(integer) of the division. Floor division(//) is used to get the quotient of the division whereas modulo(%) is for remainder. For example, 20//3 = (6*3+2)//3 = 6 20%3 = 2
4th Oct 2021, 4:11 PM
Python Learner
Python Learner - avatar
+ 3
quotient is a math term. quotient is to division as solution is to addition. 3 / 2 1.5 is the quotient
4th Oct 2021, 4:08 PM
Slick
Slick - avatar
+ 3
In Division The number which we divide is called the dividend. The number by which we divide is called the divisor. The result obtained is called the quotient. The number left over is called the remainder. Examples: Input: n = 10 m = 3 Output: Quotient: 3 Remainder 1 Input n = 99 m = 5 Output: Quotient: 19 Remainder 4
4th Oct 2021, 4:47 PM
Arun Jamson
Arun Jamson - avatar