How can I remove new lines and tab space from this string at once? s = 'This\nis\PYthon\n\tlanguage'
s = 'This\nis\PYthon\n\tlanguage'
(after the s.split('\n'), s converts to a list and I cannot split it again from \t. Also, I cannot split it from \t\n at once)