summaryrefslogtreecommitdiff
path: root/circular_queue.py
diff options
context:
space:
mode:
Diffstat (limited to 'circular_queue.py')
-rw-r--r--circular_queue.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/circular_queue.py b/circular_queue.py
index 6b36748..26f61a2 100644
--- a/circular_queue.py
+++ b/circular_queue.py
@@ -11,6 +11,7 @@ class circular_queue:
self.pointer += 1
if self.pointer >= self.size:
self.pointer = 0
+
def average(self):
value = 0
length = 0
@@ -20,4 +21,4 @@ class circular_queue:
length += 1
if length == 0:
return 0
- return value / length
+ return value / length