nelly7107 nelly7107
  • 06-07-2018
  • Computers and Technology
contestada

How do i find the remainder of a number using python?

Respuesta :

twvogels
twvogels twvogels
  • 06-07-2018
To find the remainder of a division, use the modulo operator. In python this is the '%' operator.  For example:

6 divided by 3 = 2 with zero remainder (ie 6=(2*3)+0)
6%3=0

7 divided by 3 = 2 with one reminder (ie 7=(6*2)+1)
7%3=1
Answer Link

Otras preguntas

7^1/5 times 49^7/5 equivalent to 7^1/5 times 7^14/5
Each of the 6 cats in a pet store was weighed. Here are their weights (in pounds): 145, 5, 13, 13, 15 Find the mean and median weights of these cats. If necessa
Graph the line. y+2=-1/2(x+5)
Darren is pushing a 154 pound object up a slope that is 22 feet long. He needs to use 7 pounds of effort. How tall is the incline?
Which pair shows equivalent expressions? (a) 2(2/5x+2)=2 2/5 x+1 (B) 2(2/5x+2) = 2/5x+4 (C) 2(2/5x+2) =2/5x+2 (D) 2(2/5x+2) =2 2/5x+8
how to convert 4.5 into a percentage
What is the measure of Angle A in the triangle shown?
The function f(x) is a quartic function and a limited table of values is provided below. Write the equation of the quartic polynomial in standard form.
two boys on a box with 3 N and 6 N to the right the net force is 7 N find the force of friction
Name three skills that you think you need to graduate from college, community college, or trade school. Note that I'm looking for skills, like "knowing how to s