Ask Question
10 March, 00:02

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

+4
Answers (1)
  1. 10 March, 01:00
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers