Your question is Debugging Approach. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Discuss how you would approach debugging a piece of code.
For the practical portion, debug the implementation so it returns the index of the first character that appears exactly once. Use -1 when no unique character exists.
Function signature: def first_unique_char(text):. Input is a string, and output is an integer index.
def first_unique_char(text):