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

 

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

Given a positive integer, return True if it's divisible by 2. Otherwise, return False.


divisibleBy2(556) → True
divisibleBy2(123) → False
divisibleBy2(5) → False

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

def divisibleBy2(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: 150 Post-solution available

Copyright Nick Parlante 2017 - privacy