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

 

amgreyson@gmail.com algebra-1 > divisibleBy4List
prev  |  next  |  chance

Given a value, return True if it's divisible by 4. Otherwise, return False. The digits parameter is a list containing the digits. For example, if the value is 556, then digits will be [5,5,6].


divisibleBy4List([5, 5, 6]) → True
divisibleBy4List([5, 5, 7]) → False
divisibleBy4List([1, 2, 4]) → True

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

def divisibleBy4List(digits):

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

Difficulty: 175

Copyright Nick Parlante 2017 - privacy