Open tov opened 5 years ago
def sum(*args): let res = 0 for a in args: res = res + a return res assert_eq sum(1, 2, 3, 4), 10 assert_eq sum(1, *[2, 3, 4]), 10