Should the answer not be 5n^2+3n+3…since you have to count the print() statement at the end.
Your answer is “If we make this change, sum = 0 is run n times, whereas before it was running once. So, there’s an increase of n - 1 invocations for that line.”
Please explain, thanks.