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

27th Sep 2016, 12:28 PM
hans
2 Respuestas
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?
5th Oct 2016, 10:38 AM
Krasimir Vatchinsky
Krasimir Vatchinsky - avatar
0
Hi, if you need to print the user input, replace critical characters as " with \". text.replace('"', '\"') The '"' is ' " ' without spaces
7th Mar 2017, 7:03 AM
Qwerty