In Advanced Python 3.12, what is the primary production engineering use case of 'Iterables'?
-
A. Accepting general
Iterable[Employee]parameters in service methods so callers can pass lists, tuples, sets, or DB cursors. - B. Disabling runtime exception handling and bypassing input validation.
- C. Hardcoding database credentials directly inside Python source constants.
- D. Concatenating raw untrusted strings directly into SQL statements.
✓ Reveal Answer & Explanation
Correct Answer: Option A
'Iterables' is used in production Advanced Python 3.12 specifically for: Accepting general Iterable[Employee] parameters in service methods so callers can pass lists, tuples, sets, or DB cursors.