Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Code example of Python Modulo Operator

# inputs
a = 435
b = 23
  
# Stores the remainder obtained 
# when dividing a by b, in c
c = a % b      
print(a, "mod", b, "=", c, sep = " ")
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Code #Python #Modulo #Operator
ADD COMMENT
Topic
Name
5+8 =