Added
A Python 3 script calculates a team's total hours from two inputs read as strings: `planned` and `actual`. The developer writes `total = planned + actual` and then compares `total > 40`. A test with inputs `"18"` and `"25"` produces `"1825"`, and the comparison raises a TypeError. The team needs numeric addition and comparison, while preserving the original input strings for an audit log. Which change best meets these requirements?
Converting each string before applying `+` makes the operator perform integer addition, so the result is 43 and can be compared with the integer 40. The original variables remain strings for the audit log. Comparing with `"40"` in B does not fix concatenation and also compares strings. C converts the concatenated value `"1825"`, producing the wrong total. D multiplies strings and then compares incompatible types.