0

hey guys.....i need for a part of my homework in python...to change the text in color. for each letter a specific color will be assigned, in this way, the text that will be typed in will be turned into the specific color. can anybody help me?

2
Contributors
5
Replies
9
Views
5 Years
Discussion Span
Last Post by Gribouillis
Featured Replies
  • [QUOTE=buhoasa;1486417]OS win 7 ... python 0.61 ... in a console[/QUOTE] Then you should perhaps start by reading this [url]http://www.burgaud.com/bring-colors-to-the-windows-console-with-python/[/url] . There is also a small module for download. I also know that it's not the only method to print in colors with the cmd console, but I don't usually use … Read More

0

it`s a retarded version that we work @ school with...it`s kind of changed by our prof. :|

0

Following a link in the comments of the previous link, I discovered this module colorama http://pypi.python.org/pypi/colorama which allows interpretation of the ANSI escape sequences in the windows cmd. This allows cross-platform colored text in a console !

Edited by Gribouillis: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.