<prompt> Refactor the following code.num_list 1, 2, 3, 4, 5for number in num_list: if number 3: printsmaller than 3 elif number 3: printequal to 3 else: printlarger than 3  <response>: Here is one way to refactor the code to make it more concise and readable:num_list 1, 2, 3, 4, 5for number in num_list: if number 3: result smaller than 3 elif number 3: result equal to 3 else: result larger than 3 printresult 