comefrom: <doocs>0643.Maximum Average Subarray I_1.py
code: def findMaxAverage( nums: List[int], k: int) -> float:
      s = sum(nums[:k])
      ans = s
      for i in range(k, len(nums)):
          s += nums[i] - nums[i - k]
          ans = max(ans, s)
      return ans / k
masked: def sample_funcname ( var_0 : List [ int ] , var_3 : int ) -> float :
      var_6 = sum ( var_0 [ : var_3 ] )
      var_7 = var_6
      for var_10 in range ( var_3 , len ( var_0 ) ) :
          var_6 += var_0 [ var_10 ] - var_0 [ var_10 - var_3 ]
          var_7 = max ( var_7 , var_6 )
      return var_7 / var_3
  