0
Please tell me how to put space between strings?
I'd like to change 'Thisstringswithspace' to 'This strings with space' So, what module should I use to make a function that returns 'This strings with space' from 'Thisstringswithspace'? def a(): b = #something code here print(b) input a('Thisstringswithspace') output 'This strings with space'
6 Respostas
+ 1
Shumpei Sori ik codewars. Did you choose the difficulty of 1kyu or 2? They are too hard. Try taking those with 5,6,7 and 8
+ 4
I cant get you. Can you make it more clearer.
At this time I can suggest only to press space between letters 😅
https://www.sololearn.com/discuss/1316935/?ref=app
+ 4
I don't recognize any pattern. Do you just want to insert spaces at random positions?
+ 4
This is a lot harder than you imagine because you'll need some kind of function that recognizes where one word ends and the next one begins. You could include a dictionary with all words of the English language.
+ 1
As Anna said it is harder than you imagined. If you can't store a lost of words (and probably don't) use a web scraper or API to fetch a list of words and try to find all possible words in the string. But why you need to do this kind of thing?
+ 1
I didn’t imagin it is difficult than I imagining until you two answerd me. Thank you.
I got this question at ‘codewar’(on web), and I searched on web to solve tha question. But I couldnt find way to do.