What is the better way to remove symbols from a text in Python? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 15

What is the better way to remove symbols from a text in Python?

Remove special characters from a text except spaces

21st Sep 2020, 9:09 PM
Pablo C.
Pablo C. - avatar
3 Respostas
+ 10
Thanks Namit! I'm gonna check them out.
21st Sep 2020, 9:34 PM
Pablo C.
Pablo C. - avatar
+ 3
The first method is considered better šŸ™‚ But both methods work equally! And sometimes, to reduce the execution time of the code, you generally have to prevent importing modules so in that case the second method becomes better šŸ‘ https://code.sololearn.com/cu8Ciu2GUFA5/?ref=app
21st Sep 2020, 9:29 PM
Namit Jain
Namit Jain - avatar
+ 2
Pablo Conejeros šŸ‘šŸ™‚
21st Sep 2020, 9:41 PM
Namit Jain
Namit Jain - avatar