Skip to content
Permalink
3317b0da5c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
36 lines (36 sloc) 1.07 KB
def management():
from data import check_mail
from data import delete_mail
from data import write_mail
from data import read_the_data_base
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)
elif s=="n"or s=="N":
delete_mail(c)
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)
sender(c)
if sub=="n"or sub=="N":
print(thanks_n)
read_the_data_base()