Skip to content

Commit 88f361f

Browse files
committed
new feature
1 parent 079f2de commit 88f361f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

colours.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from colorama import init, Fore, Back, Style
2+
3+
init()
4+
5+
def print_with_color(text, color=Fore.WHITE, brightness=Style.NORMAL):
6+
print(f'{brightness}{color}{text}{Style.RESET_ALL}')

0 commit comments

Comments
 (0)