educative.io

Intro to Linked Lists - Insertions at tail


#1

Hello,
I was not able to make the solution work. It gave me an error saying that insertAtTail is not defined!

However, when I redefined the method as insertAtTail(self, list, value) and used list.insertAtTail(list, 3), it worked!

Did I do something wrong, or is there an error in the given solution?

Thoughts?
Thank you!
Sincerely,
Rohit