String Split a Solution Code in Python 3

x=input()
x = x.split(" ")  
x = "-".join(x)
print(x)

Comments