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

 

amgreyson@gmail.com > hundredsThatAreDivisibleBy6
prev  |  next  |  chance

Given a 3-digit number, return True if it's divisible by 6. Otherwise, return False. Use the divisibility rule for 6, DO NOT mod by 6.


hundredsThatAreDivisibleBy6(396) → True
hundredsThatAreDivisibleBy6(427) → False
hundredsThatAreDivisibleBy6(938) → False

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

def hundredsThatAreDivisibleBy6(aNumber):

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 Post-solution available

Copyright Nick Parlante 2017 - privacy