Question: USING PYTHON 3 Write normal_list() method in recursive mode. This is what I have for my code in the iterative format. You can also use

USING PYTHON 3 Write normal_list() method in recursive mode. This is what I have for my code in the iterative format. You can also use helper functions and default arguments. I am stuck on making it recursive, so I need help. Thanks!

def normal_list(self): """ Returns a list of results based on the linked list """ result = [] current = self.head while current is not None: result += [current.data] current = current.next return result

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!