summaryrefslogtreecommitdiff
path: root/circular_queue.py
diff options
context:
space:
mode:
authorroot <root@turin.home>2022-01-30 14:01:55 +0000
committerroot <root@turin.home>2022-01-30 14:01:55 +0000
commitafdc48378489d1ce1183dfd720fd838074812a49 (patch)
tree2e4cb3663212694aa6fe64be35c9ecff575e30c7 /circular_queue.py
parentb6698810b9ff40a2d91b71c61017667642db212a (diff)
Reformatting. Adding things to date.py
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