ÁNGEL GONZÁLEZ
@ANGELGONZALEZ52
0
pls help me :c
here is my first try to color a text, but i try to do a loop with text color and it dos't work.
srry for my bad englishMrVoo @ANGELGONZALEZ52 Don't loop imports, it won't work and won't do anything anyway. I recommend you just *don't* use colorama, use this function:
```py
def rgb(r,g,b): return '\033[38;2;{r};{g};{b}m'
reset = '\033[0m'
print(rgb(0,255.0) + 'green :)' + reset)
```1 year ago
multicoder2021 @ANGELGONZALEZ52 Exactly what @MrVoo said, and there are lots more variations of text:
```Python
underline = "\033[4m"
italic = "\033[3m"
darken = "\033[2m"
invisible='\033[08m'
highlight='\033[07m'
reset='\033[0m'
red = "\033[0;31m"
green = "\033[0;32m"
yellow = "\033[0;33m"
blue = "\033[0;34m"
magenta = "\033[0;35m"
cyan = "\033[0;36m"
white = "\033[0;37m"
bright_black = "\033[0;90m"
bright_red = "\033[0;91m"
bright_green = "\033[0;92m"
bright_yellow = "\033[0;93m"
bright_blue = "\033[0;94m"
bright_magenta = "\033[0;95m"
bright_cyan = "\033[0;96m"
bright_white = "\033[0;97m" #?
```
Check out this repl:
https://replit.com/@multicoder2021/ColorsInPYTHON#main.py1 year ago
42
3
0
0
HELP ME!!!
Hi, im new in python and i have a question, in my repl i have the symbol > and it doesn't work, and I don't know why, someone pls help me ;3PikachuB2005 @ANGELGONZALEZ52 ^ Correct. Input will return a string value, so you must change it to an integer before comparing it to something else.1 year ago
6
7
0