| layout | api-command | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| language | Python | ||||||||
| permalink | api/python/mod/ | ||||||||
| command | % | ||||||||
| related_commands |
|
{% apibody %} number % number → number {% endapibody %}
Find the remainder when dividing two numbers.
Example: It's as easy as 2 % 2 = 0.
(r.expr(2) % 2).run(conn)