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

 

firstmul5


Given a list of strings, return the first string whose length is a multiple of 5. If there is none, return the empty string "". (Note that 0 is a multiple of 5.)


firstmul5(['car', 'carabine', 'caracole', 'caravan', 'carbohydrate', 'carbon', 'card', 'cards', 'care', 'careen']) → 'cards'
firstmul5(['cedar', 'ceiling', 'celebratory']) → 'cedar'
firstmul5(['cigars', 'cinched', 'cinder']) → ''

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

def firstmul5(list):

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