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

 

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

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


hundredsThatAreDivisibleBy3(393) → True
hundredsThatAreDivisibleBy3(427) → False
hundredsThatAreDivisibleBy3(938) → False

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

def hundredsThatAreDivisibleBy3(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

Copyright Nick Parlante 2017 - privacy