Implementing a function that identifies non-repeating characters in a given string. The function should return a list of characters that appear only once in the string.
Checklist:
[x] Create a function that takes a string as input.
[x] The function should return a collection (e.g., list or array) of non-repeating characters.
[x] Handle edge cases, such as:
Empty strings.
Strings with all repeating characters.
Strings with special characters and spaces.
Example Input/Output:
Input: swiss", the output should be ['w', 'i'].
Output: "aabbcc", the output should be an empty list.
Summary:
Implementing a function that identifies non-repeating characters in a given string. The function should return a list of characters that appear only once in the string.
Checklist:
[x] Create a function that takes a string as input.
[x] The function should return a collection (e.g., list or array) of non-repeating characters.
[x] Handle edge cases, such as:
Empty strings.
Strings with all repeating characters.
Strings with special characters and spaces.
Example Input/Output:
swiss", the output should be ['w', 'i'].
"aabbcc", the output should be an empty list.