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

 

bryce.hulett@hotmail.com python_list_2 > remove_even_length
prev  |  next  |  chance

Write a function remove_even_length that takes a list of strings as a parameter and that removes all of the strings of even length from the list. For example, if the list is ["This", "is", "a", "test"], after a call to your function, it should store ["a"].


remove_even_length(['This', 'is', 'a', 'test']) → ['a']
remove_even_length(['even', 'odd', 'ev', 'o']) → ['odd', 'o']
remove_even_length(['Did', 'you', 'solve', 'it', 'or', 'what?']) → ['Did', 'you', 'solve', 'what?']

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

def remove_even_length(lst):

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: 290 Post-solution available

Copyright Nick Parlante 2017 - privacy