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

A land-dwelling organism, A, and an aquatic single-celled organism, B, are represented below.
how do you write 19.07 as a mixed number
If your at the mall with your friends and they shoplift what would you do
Select the word that completes the sentence. The house _____ was around the corner from our house was for sale. that which
nativism often brews ethnic or racial hatred and often promotes one race or ethnic above others
This structure is the physical location at which the coordination of information and resources to support incident management (on-scene operations) activities n
enrollment in a photography class increased from 25 to 35 students. What was the percent of increase in enrollment?
The mean temperature change is 3.2 fahrenheit per day for 5 days. What is the total change over the 5-day period?
Describe 3 characteristics of the Anti-Federalists o 1: o 2: o 3:
What are propaganda techniques? a. They are lies. b. They are the methods and approaches used to spread ideas that further a cause—a political, commercial, re