0
Can someone help to solve this question ?
def concatenate(): print(concatenate("I", "love", "Python", "!")) Expected Output : I-love-Python-!
2 Answers
+ 8
def concatenate(*str):
return "-".join(str)
* packs multiple argument as a tuple and jok method joins an iterable with a character passed as argument to it
+ 1
You can also iterate over it's items through for loop.



