Loading...
Loading...
Loading...
A quiz needs the first letter that appears only once in a word. Read one word and print that letter. If every letter repeats, print None.
None.Example
Input
swiss
Output
w
The letter s appears 3 times, w only once.
Try the problem first. Open one hint at a time.
A letter is unique when the whole word contains it exactly once. The method count() tells you that.
Check the letters from left to right and stop at the first unique one.
Write your Python code, run it on the examples and submit it to hidden tests.
Solve in the editor