I coded a short linked list program in Python, but without realizing list was a keyword in python, I stored my LinkedList
object into list
list = LinkedList()
Running this program worked fine, but now I'm running into issues in another program where I need the list keyword to be used normally, but it still contains a reference to the LinkedList
object and not the proper keyword functionality. I have since gone back to my LinkedList
class and edited list
to be lst
instead, but I still have the same error in the class that uses the list keyword. How do I reset the list keyword to its original value?
This is the line that is giving me an error:
df = pd.DataFrame(randn(6,4), index = dates, columns = list("ABCD"))
And this is the error message:
TypeError: 'LinkedList' object is not callable