confusion with the reverse() function in python .why does it reverse both of the list in this specific question
Q3. Consider the following Python function: def maf(x): """ (list)->bool """ temp = x temp.reverse() if temp == x: return True else: return False If we call the function maf with the list a and then with the list b with the values give bellow: a = [17, 38, 10, 25, 72] b = [10,… Read More confusion with the reverse() function in python .why does it reverse both of the list in this specific question