def concatenate(*args):
args = [args]
for i in args:
return i[0] + '-' + i[1] + '-' + i[2] + '-' + i[3]
print(concatenate("I", "love", "Python", "!"))
The result should be 'I-love-python-!' , but should be similar for any number of arguments. Newbie here