Question: Please write a code for Python3 Write code for a function named factors that takes in two variables, an integer named num and a list
Write code for a function named factors that takes in two variables, an integer named num and a list of integers named potentials. Using a for loop, use the function of the previous question, to check if each number in potentials is a factor of num. When an element of potentials is not a factor, return a value representing false, otherwise if all the elements of potentials are factors of num, the function returns a value representing true
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
