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_same_length
prev  |  next  |  chance

Given a list of strings (words with less than 20 characters), return a new list containing only the words whose length is unique within the original list. In other words, if two or more words in the original list have the same length, all words of that length must be removed from the resulting list. Only words whose length appears exactly once in the original list should be included.


remove_same_length(['hi', 'at']) → []
remove_same_length(['a', 'b', 'c', 'd', 'e']) → []
remove_same_length(['apple', 'pie', 'grape']) → ['pie']

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

def remove_same_length(words):

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