Solution of the Day
def split_and_join(line):
# write your code here
line = line.split(" ")
line = "-".join(line)
return line
if name == '__main__':
line = input()
result = split_and_join(line)
print(result)
Comment any better approach and your solution here
Like, Share this post if you like this challenge