pass function args through to next function - python

12 Views Asked by At

I'm trying to make a simple logger function (I'm not a python expert):

def logger(*argv):
  print(argv)

log('Ok', 'this', 'is', 'a', 'log')

Current output: ('Ok', 'this', 'is', 'a', 'log')

Desired output: Ok this is a log

How can I format the argv to just pass the log through?

0

There are 0 best solutions below