> For the complete documentation index, see [llms.txt](https://cajac.gitbook.io/ctf-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cajac.gitbook.io/ctf-notes/prog/python/working-with-text.md).

# Working with text

dfsfsdf

## Translate characters

Translate leetspeak

```python
#!/usr/bin/python
# -*- coding: latin-1 -*-

encoded_flag = 'c4n y0u c4p7u23 7h3 f149?'

print(encoded_flag.translate(str.maketrans('1234790','lreatgo')))
```

## Resources
