0

Can I add color to my output background using python

Color In python

25th Apr 2023, 12:11 PM
Peter Osuolale
2 Antworten
+ 6
On Sololearn playground this is not really possible (apart from some clever html hacks). In a Linux console you can use some libraries to achieve such effect, like colorama or termcolor. https://www.geeksforgeeks.org/print-colors-JUMP_LINK__&&__python__&&__JUMP_LINK-terminal/
25th Apr 2023, 1:15 PM
Tibor Santa
Tibor Santa - avatar
+ 1
You can use os module for writing python code as a web so you can change the color text.
25th Apr 2023, 2:27 PM
Ugulberto Sánchez
Ugulberto Sánchez - avatar