String Split and Join

  • + 0 comments

    def split_and_join(line): # write your code here

    # split the line
    str_line = line.split()
    # join 
    return "-".join(str_line)