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

 

rmueller@lasacs.com > dups
prev  |  next  |  chance

We want to determine the duplicate names in a list. Given a list of names, return a sorted list of only the names that occur more than once.


dups(['alpha', 'beta', 'gamma', 'delta', 'alpha']) → ['alpha']
dups(['alpha', 'beta', 'gamma', 'delta']) → []
dups(['abc', 'xyz', 'mnp', 'mnp', 'abc', 'xyz']) → ['abc', 'mnp', 'xyz']

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

def dups(names):

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: 200

Copyright Nick Parlante 2017 - privacy