dcsimg
 

Submitted by: Srinath M S(srinath_ms@yahoo.com)

Wednesday Apr 29th 2020 by Srinath M S

Language: Web, Expertise: Intermediate: See how to retrieve the remainder of two numbers with the math module.

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))
Home
Mobile Site | Full Site