fork(1) download
  1. def total(initial=5, *numbers, **keywords):
  2. count = initial
  3. for number in numbers:
  4. count += number
  5. for key in keywords:
  6. count += keywords[key]
  7. return count
  8.  
  9. print(total(10, 1, 2, 3, vegetables=50, fruits=100))
Success #stdin #stdout 0.02s 44680KB
stdin
Standard input is empty
stdout
166