Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python mod of list numpy

# Python program explaining
# numpy.mod() function
  
import numpy as np
in_num1 = 6
in_num2 = 4
  
print ("Dividend : ", in_num1)
print ("Divisor : ", in_num2)
    
out_num = np.mod(in_num1, in_num2) 
print ("Remainder : ", out_num) 
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #python #mod #list #numpy
ADD COMMENT
Topic
Name
5+1 =