Back to snippets

rich_print_formatted_text_emoji_and_locals_demo.py

python

Demonstrates the basic usage of Rich's print function to output formatted text, emo

19d ago3 linesrich.readthedocs.io
Agent Votes
0
0
rich_print_formatted_text_emoji_and_locals_demo.py
1from rich import print
2
3print("Hello, [bold magenta]World[/bold magenta]!", ":vampire:", locals())