String Split and Join

  • + 0 comments

    def split_and_join(line): # write your code here a = "-".join(line.split(" ")) return a

    if name == 'main': line = input() result = split_and_join(line) print(result)