Is it possible to write something like this:
>>> text_output = \"Hello World.\"
>>> print text_output
...where if the tex
If your console supports italics. Eg rxvt-unicode using ansi escape code
>>> print "\x1B[3mHello World\x1B[23m"
Not in the standard Python shell, no. If you want all output text to be in italics, you could use some GUI shell like Dreampie. If you want the ability to actually style text (with italics, bold, etc.), you need to use some GUI library that provides that sort of ability.
No. The print function outputs to sys.stdout
by default. Assuming you're using something like IDLE, this will simply be echoed into IDLE. You can set some options in IDLE itself to show different font faces and sizes and whatnot, but this will modify everything, not just the output of print
commands.