Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Looks to me like colored.red(string) just calls ColoredString(color, string), so you could use that version if you want to parameterize the color argument.

    print ColoredString("red", "some text")


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: