<prompt> What are some ways to refactor this code?def checkDatadata: if data0 A and data1 B and data2 C: return True else: return False  <response>: One way to refactor the given checkData function is to simplify the conditional statement and return the result in a single line, as shown below:pythondef checkDatadata: return data0 A and data1 B and data2 CAnother way to refactor the code is to use the all function as follows:pythondef checkDatadata: return allc d for c, d in zipdata, ABC 