LinkedList Review error?

Hi!

Should the pointed red line be:
next_node = None
instead of
current_node = None
for a linked_list?

Hello, @neuralx.

The line you are referring to is simply a way out of the while loop. The ‘magic’ of removing the node that contains the value to remove is in the line above that.

2 Likes

Thanks @midlindner!!

This helped me clarify the concept :))

2 Likes