lundi 2 mars 2015

Python: Check for unique characters on a String

I'm asking the user to input a keyword and then remove any duplicate characters.


Example:


Input: balloon


Output: balon


I've tried this solution: Python: List of all unique characters in a string but it marks it as a syntax error.


Any ideas?


Aucun commentaire:

Enregistrer un commentaire