(self, val)
return sum(self.queue) / len(self.queue)
:type val: int
        :rtype: float
:type val: int
        :rtype: float
: type val : int : rtype : float
def next(self, val):
        """
        :type val: int
        :rtype: float
        """
        self.queue.append(val)
        return sum(self.queue) / len(self.queue)
def next ( self , val ) : self . queue . append ( val ) return sum ( self . queue ) / len ( self . queue )