+ 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 Answers
+ 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