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

 

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

Given a positive integer, return True if it's divisible by 2. Otherwise, return False. digits is a list containing each digit of the integer in order from left to right. For example, if the integer is 556, then digits will be assigned [5,5,6].


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

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

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

Copyright Nick Parlante 2017 - privacy