AttributeError: 'NoneType' object has no attribute 'next'
python-forum.io › thread-31503AttributeError: 'NoneType' object has no attribute 'next'. The question is Given the head of a linked list, remove the nth node from the end of the list and return its head. Thanks for the hint. Dec-15-2020, 09:30 PM (This post was last modified: Dec-15-2020, 09:30 PM by deanhystad .) You set prev = None and nearly then next thing you do is try to set prev.next = curr.