Python Forum
NameError: name 'self' is not defined - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: Code Review (https://python-forum.io/forum-46.html)
+--- Thread: NameError: name 'self' is not defined (/thread-37252.html)

Pages: 1 2


RE: NameError: name 'self' is not defined - walter - May-19-2022

But i need to add two number: one number is 345 in linkedlist L1 and 678 the other number in L2 linkedlist. And the output in the result will be
345+678=1023 So 1023 will be memorize in the linked list created in the class Solution.
Walter


RE: NameError: name 'self' is not defined - walter - May-22-2022

But i need to add two number: one number i345 is in a linkedlist L1 and 678 the other number in another linked list L2. And also the output will be put in some nodes of another linked list. So the result of the sum wll be 1023 and i need to put 1023 in a different linked list of the class Solution.
Walter