Back
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.)
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:-
31k questions
32.8k answers
501 comments
693 users