+ 1
Hw do u write afunction that takes multiple words as itsarguments& returns a concatenated version of those words separated by(-)
The function should be able to take a varying number of words as its argument Sample input This is me Sample output This-is-me
8 Respuestas
+ 3
This is one of the python challenges, right?
Please post your attempt, so we can help you!
+ 2
Rachel Witro It a end of module project in the sololearn python course (104
+ 2
https://code.sololearn.com/c60fgG8OHpAx/?ref=app
Analyze this code! This will help you!
All the best!
+ 1
simbarashe
join() can help you
"-".join(words) # no loop needed
+ 1
Ok thank you
0
But u guys where do u get your challenges from
0
def show (*words):
for word in words:
print(word)
show('this','is','me')
So i want it to give an ouput like this-is-me ,so can u assist me