Closed
Description
Hi, I'm new to programming and I'm not sure if it's a problem, but the code(
Python/data_structures/queue/queue_on_list.py) have the same name for an attribute and a function.
class Queue:
def __init__(self):
self.entries = []
self.length = 0
self.front = 0
def front(self):
return self.entries[0]
When executed it gives me the error:
TypeError: 'int' object is not callable
Metadata
Metadata
Assignees
Labels
No labels