fork download
  1. import re
  2. text = ['unstable',
  3. 'people\x9d.',
  4. 'pattern',
  5. 'real',
  6. 'thought',
  7. 'fearful',
  8. 'represent',
  9. 'contrarians\x9d',
  10. 'greedy',
  11. 'interesting',
  12. 'behaviour',
  13. 'opposite']
  14. text = [k.replace('\x9d.', '') for k in text]
  15. print(text)
Success #stdin #stdout 0.03s 9416KB
stdin
Standard input is empty
stdout
['unstable', 'people', 'pattern', 'real', 'thought', 'fearful', 'represent', 'contrarians\x9d', 'greedy', 'interesting', 'behaviour', 'opposite']