Q.how to Reverse a linked list python ?

To Reverse a linked a list , we iterate over each element and store it in a list and then iterate over the list ,intilaize the previous list to none and then push back the element to the list


OUTPUT