Skip to content
Advertisement

How to clear this AttributeError “nonetype”?

I’m learning datastructure while compiling this mergesort linkedlist . I got this error. I tried so much but didn’t work. Can any one tell me what’s wrong? please .

Traceback (most recent call last): File “C:Users**AppDataLocalProgramsPythonPython37merge_sort_ver_2.0 linked list.py”, line 122, in

JavaScript

File “C:Users**AppDataLocalProgramsPythonPython37merge_sort_ver_2.0 linked list.py”, line 75, in merge_sort

JavaScript

File “C:Users**AppDataLocalProgramsPythonPython37merge_sort_ver_2.0 linked list.py”, line 94, in merge

JavaScript

AttributeError: ‘NoneType’ object has no attribute ‘head’

JavaScript

Advertisement

Answer

thanks Jérômei for your tips i cleared the error

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement