Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created February 7, 2020 21:36
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/ea55531dcb09809869b2de87030170a5 to your computer and use it in GitHub Desktop.
Save codecademydev/ea55531dcb09809869b2de87030170a5 to your computer and use it in GitHub Desktop.
Codecademy export
#Write your function here
def divisible_by_ten(nums):
divisible_lst = []
for a in nums:
if a % 10 ==0:
divisible_lst.append(a)
return len(divisible_lst)
#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