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 is the recommended action under Ohio law when overtaking another vehicle? a. Use turn signals b. Sound the horn c. Make sure it is safe d. All of the abov
The Cabinet meetings includeA. Cabinet department leadersB. the Vice PresidentC. the White House Chief of StaffD. all of the above
A particle moves in a straight line with a constant acceleration. it changes its velocity from 10m/s to 20 m/s while passing through a distance 135 m in t sec.
the measure of what can be reported as the median,the mean, or the mode A.Outlier B.Center C.Shape D.Spread
3.6x10 discuss the shift and find each product
Factor a^2 -5ay -6y^2
A typical operating range for time fuzes is how many seconds?
_______ of general trade cycle consists of two steps like invoice and payment. a) Pre-sale b) Execution c) Settlement d) After-sale
explain the relationship between a mass spectrum and a total ion chromatogram.
The Constitution and the rights expressed in it are directed at protecting citizens against the improper actions of which of the following? A) Private individua