How to remove spaces from a sentence by programming ....? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

How to remove spaces from a sentence by programming ....?

example: input= hello friends how are you. output=hellofriendshowareyou

12th Jun 2018, 5:53 AM
Dipesh Kumar
Dipesh Kumar - avatar
5 Respostas
+ 2
Please write more specifically your question so that others can understand your question.
12th Jun 2018, 5:56 AM
Alexander Sokolov
Alexander Sokolov - avatar
+ 1
If you want to remove all spaces, useĀ str.replace(): sentence = ' hello my fellow bro' sentence.replace(" ", "") >>> 'hellomyfellowbro'
12th Jun 2018, 6:38 AM
į Œį ŒBrains[Abidemi]
į Œį ŒBrains[Abidemi] - avatar
0
in any language....!
12th Jun 2018, 6:21 AM
Dipesh Kumar
Dipesh Kumar - avatar