Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- response=""
- ids=[]
- while not response=="exit":
- response=input("Enter email ids")
- if response.count('@')==1 and response.count('.')==1:
- ids.append(response)
- elif response=="exit":
- print("exiting")
- else:
- print("enter a valid email id")
- text="".join(ids)
- print("gmail total occurence",text.count("gmail"))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement