comefrom: <doocs>1837.Sum of Digits in Base K_1.py
code: def sumBase( n: int, k: int) -> int:
      res = 0
      while n != 0:
          n, t = divmod(n, k)
          res += t
      return res
masked: def sample_funcname ( var_0 : int , var_2 : int ) -> int :
      var_4 = 0
      while var_0 != 0 :
          var_0 , var_6 = divmod ( var_0 , var_2 )
          var_4 += var_6
      return var_4
  