What version of python are you running and on which OS?
I don't know why it's complaining about AddBookToPosition it looks correct. When I copy/pasted your code and ran it in Python 2 and 3, I got this error:
I don't know why it's complaining about AddBookToPosition it looks correct. When I copy/pasted your code and ran it in Python 2 and 3, I got this error:
Error:Traceback (most recent call last):
File "foo.py", line 120, in <module>
ll.AddBookAtPosition(45,2)
File "foo.py", line 27, in AddBookAtPosition
node = Node(val, temp_next);
TypeError: __init__() takes exactly 2 arguments (3 given)