From 0424247b9706da619617e6b8ed814e305c94b368 Mon Sep 17 00:00:00 2001 From: kiNgSresh Date: Sat, 19 Oct 2019 01:30:43 +0530 Subject: [PATCH] I've included an exit function with thank you message using pyfiglet --- src/batsay.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/batsay.py b/src/batsay.py index 0c034e4..bd42baa 100644 --- a/src/batsay.py +++ b/src/batsay.py @@ -1,6 +1,6 @@ import roosay import sys - +import pyfiglet def main(): """ checks for command line arguments @@ -45,3 +45,6 @@ def print_bat(): if __name__ == '__main__': main() +def thanks_and_exit(): + print(pyfiglet.figlet_format('Thank you',font='slant')) + sys.exit()