| about | help | code help+videos | done | prefs |
remove_same_length
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 290 Post-solution available
Copyright Nick Parlante 2017 - privacy