Review a rename that also changes indentation

An editing task requires renaming flow_l_s to inlet_flow_l_s while preserving the program's behavior. Each snippet below is run separately for readings of 1.5 L/s and 2.5 L/s. In every run, limit_l_s is 2.0 L/s. Both functions return normally; record logs one reading each time it is called.


Original text:


Python
if flow_l_s > limit_l_s:
    sound_alarm()
record(flow_l_s)


Edited text:


Python
if inlet_flow_l_s > limit_l_s:
    sound_alarm()
    record(inlet_flow_l_s)


Counting across the two readings, which review conclusion is correct?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Editors Questions: