Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Akhil-64 authored Sep 25, 2019
1 parent 4055a13 commit 1a3c454
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 118 prog.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import re
print("enter number")
x=int(input())
for i in range(0,x):
print("enter name and email id")
a=input()
b=a.split()
p="^[a-zA-Z][\w\.\-]+\@[a-zA-Z]+\.[a-zA-Z]{1,3}$"
x2=re.findall(p,b[1])
print(x2)
if x2:
print("valid e-mail")
else:
print("invalid e-mail")


0 comments on commit 1a3c454

Please sign in to comment.