Question: for python def divisible ( nums , d ) : for i in range ( len ( nums ) ) : if nums [ i

for python def divisible(nums, d):
for i in range(len(nums)):
if nums[i]% d ==0:
return i
return None
What is returned by the following function call?
divisible([3,12,24,36,45,60,90],5)
a)4 b)5 c)45 d)60 e)[45,60,90]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!