I am facing indentation error despite correct spaces. I am not able to figure out the exact problem
Code region :
def reverse(self,pos):
cur=pos
prevnode =None
nextnode=None
while cur.next!=None:
nextnode=cur.next
cur.next=prevnode
prevnode=cur
cur=nextnode
self.head=prevnode
error comes at this point :
File "python", line 75 nextnode=None ^ IndentationError: unexpected indent Here's the repl link :https://repl.it/@LJ1/ConstantPurpleDisk