Skip to content
Sign UpLog In
Profile icon

ÁNGEL GONZÁLEZ

@ANGELGONZALEZ52
Repls
Community
ANGELGONZALEZ52
ANGELGONZALEZ52
published an Update
1 year ago
0
A example
A example
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 english
MrVoo
MrVoo
@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
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
ANGELGONZALEZ52
ANGELGONZALEZ52
published an Update
1 year ago
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 ;3
PikachuB2005
PikachuB2005
@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
ANGELGONZALEZ52
ANGELGONZALEZ52
@PikachuB2005 how i can do it? 1 year ago
PikachuB2005
PikachuB2005
@ANGELGONZALEZ52 just do `int(input('What is your age?\n'))` it should work1 year ago