Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

modulo python

# floor devision and modulo 
def euclidean_division(x, y):
	quotient = x // y
	remainder = x % y
	print(f"{quotient} remainder {remainder}")

euclidean_division(1, 7000)  
# finds both in one function
 
PREVIOUS NEXT
Tagged: #modulo #python
ADD COMMENT
Topic
Name
5+7 =