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

 

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

Given a 3-digit number, return True if it's divisible by 6. Otherwise, return False. digits is a list containing each digit of the integer. For example, if the value is 556, then digits will be [5,5,6].


hundredsThatAreDivisibleBy6([5, 5, 6]) → False
hundredsThatAreDivisibleBy6([1, 2, 3]) → False
hundredsThatAreDivisibleBy6([1, 1, 4]) → True

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

def hundredsThatAreDivisibleBy6(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: 125

Copyright Nick Parlante 2017 - privacy