LearnPy Hub
← Decorators problems
Easy

Pass Any Arguments Through

Write a decorator trace whose wrapper takes *args, **kwargs, prints args=ARGS and returns func(*args, **kwargs). Decorate join(a, b, sep='-') and print join(x, y) for two input words.

Input

Two lines.

Output

Two lines.

Sample 1

Input
a
b
Output
args=('a', 'b')
a-b

Sample 2

Input
hello
world
Output
args=('hello', 'world')
hello-world
solution.py
Output appears here
Pass Any Arguments Through · Python practice problem · LearnPy Hub