Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Queue():
- def __init__(self):
- self.line = []
- def insert(self, obj):
- self.line+=[obj]
- def remove(self):
- if self.line == []:
- raise ValueError()
- else: (self.line).pop(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement