Answers for "prime factors of a number in python funtion"

3

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
Posted by: Guest on April-15-2021

Code answers related to "prime factors of a number in python funtion"

Python Answers by Framework

Browse Popular Code Answers by Language