Re: [Tutor] Problem using termcolor and colorama

2018-11-15 Thread Peter Otten
John Blower wrote: > I try to create colour text by using these two modules , only returns the > colour code, no colour text. How to solve this problem. > import termcolor import colorama colorama.init() termcolor.cprint('Hello World','red') > [31mHello World[0m Start with o

Re: [Tutor] Problem using termcolor and colorama

2018-11-15 Thread Steven D'Aprano
On Thu, Nov 15, 2018 at 01:18:16PM +, John Blower wrote: > I try to create colour text by using these two modules , only returns the > colour code, no colour text. > How to solve this problem. Use a terminal that supports colour codes. > >>> import termcolor > >>> import colorama > >>> co

Re: [Tutor] Problem using termcolor and colorama

2018-11-15 Thread David Rock
> On Nov 15, 2018, at 07:18, John Blower wrote: > > I try to create colour text by using these two modules , only returns the > colour code, no colour text. > How to solve this problem. > import termcolor import colorama colorama.init() termcolor.cprint('Hello World','red'

[Tutor] Problem using termcolor and colorama

2018-11-15 Thread John Blower
I try to create colour text by using these two modules , only returns the colour code, no colour text. How to solve this problem. >>> import termcolor >>> import colorama >>> colorama.init() >>> termcolor.cprint('Hello World','red') [31mHello World[0m Sent from Mail

[Tutor] python commandos

2018-11-15 Thread Avi Gross
Dev, There are many ways to learn a programming language but a list of all commands is not necessarily a good way. I suspect your real question is how do you learn Python as either a beginner at this language or with little knowledge of computers in general. There are tons of books and classes bo