human
Find if a number is divisible by every number in a list | Python program which check is a number divided with every element in list or not.
Checking if a number is divided by every element or not.
Driver code"
Solution in Python:

What is a code to find if a number is divisible by every number in a list and the other steps required?
assistant
#Here is code to find if a number is divisible by every number in a list and the other steps required.
 def findNoIsDivisibleOrNot ( n , l = [ ] ) :
	for i in range ( 0 , len ( l ) ) :
		if l [ i ] % n != 0 :
			return 0
	return 1
l = [ 14 , 12 , 4 , 18 ]
n = 2
if findNoIsDivisibleOrNot ( n , l ) == 1 :
	print " Yes "
else :
	print " No "