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

9/27/2016 12:28:15 PM


2 Answers

New Answer


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?


Hi, if you need to print the user input, replace critical characters as " with \". text.replace('"', '\"') The '"' is ' " ' without spaces