Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created March 29, 2020 04:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/dcda686a454f969614945923e0b3169f to your computer and use it in GitHub Desktop.
Save codecademydev/dcda686a454f969614945923e0b3169f to your computer and use it in GitHub Desktop.
Codecademy export
#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