Ask Question
7 December, 21:12

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

+3
Answers (1)
  1. 7 December, 23:54
    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?
Get an answer to your question ✅ “How do i find the remainder of a number using python? ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers