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

Why did empires fall? ​
Dr. King employs allusions in his "Letter to Birmingham Jail" to help the audience make connections. Based on the thesis, what is the writer's purpose for the e
Construct a box plot for the data given.43 46 49 51 5252 58 55 65 6667 66 66 67 6769 71 73 75 7977 83 85 86 87
Calculate speed of a wave that has a wavelength of 4 meters and a frequency of 8Hz
A -9.00 μC point charge and +7.00 μC point charge are placed along the x-axis at x = 0.000 m and x = 0.4 m, respectively. Where must a third charge be placed al
An auto mechanic charges $50 to diagnose a problem and $25 per hour to repair the problem. If x represents the total number of hours worked and y represents the
Please help me no links!!
15 + 4(10 - 2 · 5) + 7 = 7 22 182 767
NO LINKS OR ELSE YOU'LL BE REPORTED! Only answer if you're very good at Math.Let u= (5,-12) and c= -3.What is ||cu||?A: 21B: 51C: 39D: -39​
describe two ways how​