Part 1. Definition
In this task, you are given an input list A. You need to extract and sort the unique digits used in the list in ascending order. Return -1 if there is no digit in the list.
Part 2. Example
['q', '31', 'a', 'd', '53', '85', 'p', '77']
Answer: 1, 3, 5, 7, 8
Explanation: Here, the numbers in the list are '31', '53', '85' and '77', and the unique digits used in the list are '1, 3, 5, 7, 8' in ascending order.
Part 3. Exercise
['97', 'q', 'i', '285', '285', 'j', 'l', 'c', '193', 'r', '109', '209']
Answer:
0, 1, 2, 3, 5, 7, 8, 9