From 3317b0da5cf57388fa9068dcb6ff63d28e957c39 Mon Sep 17 00:00:00 2001 From: "Albert Xhebexhiu (xhebexhiua)" Date: Tue, 6 Apr 2021 04:58:24 +0100 Subject: [PATCH] push --- inerface.py | 2 +- mails.txt | 1 - management.py | 6 ++++++ printers.py | 2 ++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/inerface.py b/inerface.py index 531df08..8a600b0 100644 --- a/inerface.py +++ b/inerface.py @@ -1,2 +1,2 @@ from management import management -management() +management() \ No newline at end of file diff --git a/mails.txt b/mails.txt index d98f39e..e69de29 100644 --- a/mails.txt +++ b/mails.txt @@ -1 +0,0 @@ -albertoxhe08@gmail.com diff --git a/management.py b/management.py index c66131e..a0a5f35 100644 --- a/management.py +++ b/management.py @@ -6,13 +6,17 @@ def management(): from data import sender from printers import start from printers import would + from printers import would2 from printers import thanks_y from printers import thanks_n from printers import thanks_s from printers import subscribe + from printers import subscribe2 c=input(start) if check_mail(c)==True: s=input(would) + while s!="y" and s!="Y" and s!="n" and s!="N": + s=input(would2) if s=="y"or s=="Y": print(thanks_s) sender(c) @@ -21,6 +25,8 @@ def management(): print (thanks_n) else: sub=input(subscribe) + while sub!="y" and sub!="Y" and sub!="n" and sub!="N": + sub=input(subscribe2) if sub=="y"or sub=="Y": print(thanks_y) write_mail(c) diff --git a/printers.py b/printers.py index 1482978..f3c93be 100644 --- a/printers.py +++ b/printers.py @@ -2,8 +2,10 @@ start=("could you enter your email please?\n") thanks_y=("congratulations from now and the future you will be the first to receive news about perfumes\n ") thanks_n=("thank you for being with us\n") subscribe=("would you like to subscribe on us community if yes type(y) or if not type(n)\n") +subscribe2=("May you type the correct letter pelase, would you like to subscribe on us community if yes type(y) or if not type(n)\n") thanks_s=("thank you for staying with us") would=("would you like to stay subscribe on us community? if yes type(y) or if not type(n) \n") +would2=("May you type the correct letter pelase ,would you like to stay subscribe on us community? if yes type(y) or if not type(n) \n") message="""\ SUBJECT:Fragrance