Ask Question

How do i find the remainder of a number using python?

+1
Answers (1)
  1. 29 February, 13:30
    0
    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
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “How do i find the remainder of a number using python? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers