We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Strings
- String Split and Join
- Discussions
String Split and Join
String Split and Join
Sort by
recency
|
1046 Discussions
|
Please Login in order to post a comment
Just Add this on Top, Done!
def split_and_join(line): # write your code here new_string = line.split(" ") word = "-".join(new_string)
def split_and_join(line): # write your code here x = line.split() return "-".join(x)
if name == 'main': line = input() result = split_and_join(line) print(result)
def split_and_join(line): # write your code here x = line.split() return "-".join(x)
if name == 'main': line = input() result = split_and_join(line) print(result)
def split_and_join(line): # write your code here x = line.split() return "-".join(x)
if name == 'main': line = input() result = split_and_join(line) print(result)