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

what are all of the nonsense words used in How the animals lost their tails
Question-can you connect the issue to something you already know ? The Russian invasion of Ukraine has prompted the United States and its allies to respond w
Simplifythe expression to a polynomial in standard form. (4x-3)(-2x^2-7x-5)
Which of the following expressions is equivalent to 25r^4+40r^2s+16s^2? A. (5r+4s)^2 B. (5r^2+4s)^2 C. (5r+4s^2)^2 D. (5r^2+4s^2)^2
A solution contains 3.8x10-2 M in Al3+ and 0.29 M in NaF. If the Kf for AlF63- is 7x1019, how much aluminum ion remains at equilibrium?
What is product positioning?
which three sentences in this excerpt from f. scott fitzgerald’s winter dreams show that dexter’s interest in judy jones has more to do with her beauty than her
Get this right will give brainleyest
what is 4b ×0.5a simplified ​
What refers to the processing of a substance or an object so that it may be used again? deep-sixing jettisoning recycling scrapping