• It works, could you comment on it?

Question related to mission Extra dashes

 
def chekio(line):

    words=[word for word in line.split('-') if len(word)>=1 ]
    dash='-'
    return dash.join(words)