Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python find the factors of a number

def findFactors(num: int)->list:
  factors=[]
  for i in range(1,num+1):
     if num%i==0:
         factors.append(i)
  return factors
 
PREVIOUS NEXT
Tagged: #python #find #factors #number
ADD COMMENT
Topic
Name
2+8 =