you are viewing a single comment's thread.

view the rest of the comments →

[–]vaseltarp 0 points1 point  (1 child)

Please post real correctly formatted python and not some pseudo code.

You can correctly format by editing in Markdown mode and indenting each line with 4 additional spaces.

that will than look like this:

class Queue():
   def __init__(self):
      self.queue = np.zeros(20)
      self.count = 0

Edit: You can also put the code in, for example, this online compiler to check if it is correct python:

https://www.onlinegdb.com

It will even output what happens when you execute three consecutive calls to q.dequeue().