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



removeRepeats() -- Given a String s containing only lower-case characters, return a String t in which all except the first occurrence of each character has been removed. For example, removeRepeats("llama") should return "lam", and removeRepeats("abracadabara") should return "abrcd".

removeRepeats('llama') → 'lam'
removeRepeats('abracadabara') → 'abrcd'
removeRepeats('basketball') → 'basketl'

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

def removeRepeats(s) :

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

Copyright Nick Parlante 2017 - privacy