So until now I have been creating variables such as "coloredPrice" to hold colored strings. But it is just so fucking retarded.
Example:
And this is coloredBuyAmount:
That works fine, but I feel like there must be an easier way, I'm just not very experienced with termcolor & colorama.
I would want something like this:
Which I would want to print this: This color is grey but this is green
But that doesn't work
Very much appreciated!
EDIT im more retarded than i thought. the example code i showed worked
Example:
PHP Code
<?php
print("Sending order of " + coloredBuyAmount + " Bitcoins . . .")
And this is coloredBuyAmount:
PHP Code
<?php
coloredBuyAmount = colored(str(buyAmount), "yellow", attrs=['bold'])
That works fine, but I feel like there must be an easier way, I'm just not very experienced with termcolor & colorama.
I would want something like this:
PHP Code
<?php
cprint("This color is grey " + colored("but this is green", "green"))
But that doesn't work
Very much appreciated!
EDIT im more retarded than i thought. the example code i showed worked
