def q_sum(*args, q=1) -> float: sm_r = sum(args) pr_r = prod(*args) return sm_r + (1 - q) * pr_r
def q_sum(*args,q=1)->float: den_ = lambda q_: 1-q_ den = limit(den_,q) sm_r = sum(args) pr_r = prod(*args) return sm_r + (den)*pr_r
def q_sum(*args, q=1) -> float: sm_r = sum(args) pr_r = prod(*args) return sm_r + (1 - q) * pr_r
def q_sum(*args,q=1)->float: den_ = lambda q_: 1-q_ den = limit(den_,q) sm_r = sum(args) pr_r = prod(*args) return sm_r + (den)*pr_r