This commit is contained in:
dosangyoon
2022-03-19 23:30:54 +09:00
parent 471c1b75b8
commit b37438f83c

View File

@@ -27,7 +27,7 @@ class MovingAverage(object):
def avg(self):
length = len(self.queue)
total = self.sum()
return round(total / length)
return round(total / length, 2)
def print(self):
print(self.sum(), self.queue)