Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (47.6k points)

How could I go about finding the division remainder of a number in Python?

For example:

If the number is 26 and the divided number is 7, then the division remainder is 5.

(since 7+7+7=21 and 26-21=5.)

1 Answer

0 votes
by (106k points)
edited by

For finding the division remainder of a number in Python you can use the modulo operator like as follows:-

a % b

An example of this is as follows:-

26 % 7

To know more about this you can have a look at the following video tutorial:-

Related questions

0 votes
1 answer
asked Mar 30, 2021 in Java by sheela_singh (9.5k points)
0 votes
1 answer
asked Jul 8, 2019 in Python by Sammy (47.6k points)
0 votes
1 answer

Browse Categories

...