Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions catprinter.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
from printer import pretty_print


def draw_cat():
cat = r"""
/\_/\
( o.o )
> ^ <
"""
return cat

def draw_cats(num_cats):
for i in range(num_cats):
pretty_print(draw_cat())
cat = r"""
/\_/\
( o.o )
> ^ <

(press ctr+C to stop)
"""
return cat


def draw_cats():
while True:
pretty_print(draw_cat())

2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

def main():

draw_cats(10)
draw_cats()

if __name__ == '__main__':
main()
4 changes: 2 additions & 2 deletions printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"\033[91m", # Red
"\033[92m", # Green
"\033[93m", # Yellow
"-\033[94m", # Blue
"\033[94m", # Blue
"\033[95m", # Magenta
"\033[96m", # Cyan
"-\033[97m", # White
"\033[97m", # White
]
reset_color = "\033[0m"

Expand Down