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

Okay So Blink your eyes. Was work done? Explain your answer. I don't need you telling me this isn't a real question also I need this kind of work so please don'
A woman shouts at a boy who is underwater what happens to the speed of the sound wave as it moves from the air into the water
Is -1/16 a rational number?
Statement: : If two distinct planes intersect, then their intersection is a line. Which geometry term does the statement represent? Defined term Postulate Theor
Pretend your classmate has told you that they are having trouble with what succession is. How would you explain to them what succession is? How would you explai
Help me please!!!!!!
I Need Help Answering This Question! No Bots! Will Report If Bot!
Write the correct form of the verb according to the subject. Yo ______________ inglés y español. (comprender) Ellos siempre ______________ hamburguesas y papas
What are all the systems that work with the nervous system
True or False: An increase (+) in MASS will cause an increase (+) in gravity? O True O False I need an answer pls
good job