5 lines
201 B
Markdown
5 lines
201 B
Markdown
```python
|
|
globals().update({color: lambda text, ansi=ansi: f'\x1b[{ansi}m{text}\x1b[0m'
|
|
for color, ansi in zip("red green yellow blue magenta cyan".split(), range(91, 97))})
|
|
print(red('hello'))
|
|
``` |