id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

divisibleList


divisibleList(numberList, divisor) -- given a list of integers numberList and a postive integer divisor, return a list containing only the numbers from numberList that are divisible by divisor, in the order in which they originally appeared.


divisibleList([1, 2, 3, 4], 2) → [2, 4]
divisibleList([0, 10, 5, 9, 0], 3) → [0, 9, 0]
divisibleList([11, 15, 18, 21], 4) → []

...Save, Compile, Run (ctrl-enter)

def divisibleList(numberList, divisor):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Copyright Nick Parlante 2017 - privacy