dcsimg
LinkedIn
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Beginner
Apr 29, 2020

Retrieving the Remainder of Two Numbers in Python

Using the Math module, we can retrieve the remainder of two numbers.

For example, the following would return 0.

import math 
re = math.remainder(6, 3))
Srinath M S
 
Close Icon
Thanks for your registration, follow us on our social networks to keep up-to-date