I’m trying to write a function that loops through and checks if a number is divisible by 10. I cannot figure out what to put in the return statement to ensure that the loop continues to run through until completion.

Here’s the question:

Create a function named

`divisible_by_ten()`

that takes a list of numbers named`nums`

as a parameter. Return the count of how many numbers in the list are divisible by`10`

.

Here is my code:

```
#Write your function here
def divisible_by_ten(nums):
i = 0
for i in nums:
if i % 10 == 0:
return nums[i]
#Uncomment the line below when your function is done
print(divisible_by_ten([20, 25, 30, 35, 40]))
```

Any ideas?