Parse whole-number counts without hiding rejected input. Arguments are strings.
Prototype: parse_count(text) uses Python's int(text) conversion. Return the converted integer when it is nonnegative; raise ValueError for negative or unparseable text. Whitespace and a leading + are allowed by int. No exact error message is required.
Final: parse_counts(lines) processes a list of strings and returns (accepted, rejected). accepted contains parsed nonnegative integers in order. rejected contains zero-based indices of strings rejected by parse_count. Example: ["2", "bad", "-1", " 0 "] -> ([2, 0], [1, 2]). Continue after a ValueError; do not catch unrelated exceptions. Do not modify the input. Empty input gives ([], []).
Complete the starter code, then run the checks.
Results and errors will appear here.