Can you guys help me resolving this question?
Here is 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.
My answer should be correct but I got it wrong. I always got 2 as an output. I didn't know why.
Need your help guys!
Ok, first off there are a few issues in your code. Line is giving you two because it is checking how many characters are in a number, and since the first number is 20, it gives you two. You should change that line to
Second, below that you are returning the answer before the loop has finished, unindent
return i two tabs.