-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemail checker.py
More file actions
30 lines (29 loc) · 962 Bytes
/
Copy pathemail checker.py
File metadata and controls
30 lines (29 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#sami606713@gmail.com
k=0
j=0
while(True):
email=input("enter email")
if(len(email)>=6):
if(email[0].isalpha()):
if("@" in email and email.count("@")==1):
if(email[-3]=="." or email[-4]=="."):
for i in email:
if(i==i.isspace()):
k=1
elif(i==i.isupper()):
email.lower()
elif("@" or "." or "_" not in email):
j=1
else:
continue
print("correct email")
with open("sami.txt","a+") as f:
f.write(f"incoming email is={email}\n")
else:
print("wrong email")
else:
print("wrong email")
else:
print("wrong email")
else:
print("wrong email")