Question: (General python) Write the function divisible(n,a,b) that receives three integers n, a, and b and returns 0 if n is not divisible by either a
(General python) Write the function divisible(n,a,b) that receives three integers n, a, and b and returns 0 if n is not divisible by either a or b, 1 if n is divisible by either a or b (but not both), and 2 if n is divisible by both a and b.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
