-
-
Save codecademydev/dcda686a454f969614945923e0b3169f to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Write your function here | |
def divisible_by_ten(nums): | |
count = 0 | |
for num in nums: | |
if num % 10 == 0: | |
count+=1 | |
return count | |
#Uncomment the line below when your function is done | |
print(divisible_by_ten([20, 25, 30, 35, 40])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment