fork(1) download
  1. def total(initial=10, *numbers, **keywords):
  2. count = initial
  3. print(count, numbers, keywords)
  4. for number in numbers:
  5. count += number
  6. for key in keywords:
  7. count += keywords[key]
  8. return count
  9.  
  10. print(total(10, 1, 2, 3, 8, 10, set=50, settings=200))
Success #stdin #stdout 0.02s 9204KB
stdin
Standard input is empty
stdout
10 (1, 2, 3, 8, 10) {'set': 50, 'settings': 200}
284