You are viewing a single comment's thread. Return to all comments →
a=input() print("-".join(a.split())) if name == 'main': line = input() result = split_and_join(line) print(result)
i am getting error even after writing code because of deafult code present in it.
Seems like cookies are disabled on this browser, please enable them to open this website
String Split and Join
You are viewing a single comment's thread. Return to all comments →
def split_and_join(line):
a=input() print("-".join(a.split())) if name == 'main': line = input() result = split_and_join(line) print(result)