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_1 : int ) -> int :
      var_2 = 0
      while var_0 != 0 :
          var_0 , var_3 = divmod ( var_0 , var_1 )
          var_2 += var_3
      return var_2
  