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

 

bostonpythonworkshop@gmail.com SaturdayMorning > enoughLadybugs
prev  |  next  |  chance

enoughLadybugs(ladybugs, trees): it takes 100 ladybugs to protect 1 tree from aphids. Given an integer ladybugs and an integer trees, return True if you have enough ladybugs to protect the trees, or False if you need to buy more ladybugs


enoughLadybugs(300, 3) → True
enoughLadybugs(300, 4) → False
enoughLadybugs(250, 11) → False

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

def enoughLadybugs(ladybugs, trees):

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

Post-solution available

Copyright Nick Parlante 2017 - privacy