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
|
1084 Discussions
|
Please Login in order to post a comment
return line.replace(' ','-')
def split_and_join(line): # write your code here return "-".join(line.split(" "))
def split_and_join(line): line=line.split(" ") line="-".join(line) return line