0
how to handle text in phyton
Hi Just learned I need to exempt certain characters when using string. How to handle large texts or user input where I cant do that? thanks a lot sunny greetgings from Vienna
2 Respostas
0
could you specify what exactly you need to do with the data? You can do many things from searching, extracting, creating lists, dictionary or convert strings, what is the main purpose, task you need to perform?
0
Hi, if you need to print the user input, replace critical characters as " with \".
text.replace('"', '\"')
The '"' is ' " ' without spaces