You need to write a function that takes multiple words as its argument and returns a concatenated version of those words separat | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

You need to write a function that takes multiple words as its argument and returns a concatenated version of those words separat

You need to write a function that takes multiple words as its argument and returns a concatenated version of those words separated by dashes (-). The function should be able to take a varying number of words as the argument. Sample Input this is great Sample Output this-is-great

25th Dec 2020, 6:06 PM
Mohammed Dafa alla Mohammednour Hamid
Mohammed Dafa alla Mohammednour Hamid - avatar
3 Answers
+ 1
In what programming language?
25th Dec 2020, 6:09 PM
Roma Butaku
Roma Butaku - avatar
+ 1
Duplicate question https://www.sololearn.com/discuss/2640353/?ref=app Also don't just copy paste challenges. This is straight from the python course
25th Dec 2020, 9:18 PM
Benjamin Jürgens
Benjamin Jürgens - avatar
25th Dec 2020, 6:10 PM
Mohammed Dafa alla Mohammednour Hamid
Mohammed Dafa alla Mohammednour Hamid - avatar