educative.io

Educative

A bug has to e fixed

Hello,
if the data of the linked list is not of string type the is_palindrome_1 method will raise an error.
You have to change the line of code:

s += p.data

by

s += str(p.data)

Best regards
Miguel


Course: Educative: Interactive Courses for Software Developers
Lesson: Educative: Interactive Courses for Software Developers