Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Email Validation
E = input() A = E.lower() N = E.find("@") A1 = [ ] n = 0 m = 0 for y in A: if y.isdigit() ==True or y.isalpha() == True or y == "@" or y == "." or y == "_" : m = 3 else: m = 1 break for x in range(0,len(E)): A1.append(E[x]) for z in A1: if z.isdigit() == True: n = 2 print ("_"*39) if len(E)<6: print ("some parameters missing") elif E[-4]!="." and E[-3]!= ".": print ("enter a valid mailbox address.") elif E[N+1].isalpha()== False : print ("enter a valid mailbox address.") elif E.count("@")!= 1: print ("Only one @ is must.") elif E[0].isalpha()== False : print ("First letter of your email should be an alphabet.") elif E != A: print ("Don't use capital letters in your email.") elif m ==1: print ("There should not be space or special characters in your Email.") elif n !=2: print ("there should be a number character also in your email.") else: print ("email created successfully") print ("_"*39)
run
|
edit
|
history
|
help
1
self "keyword"
PyOCP
on_off
fibonaccii.py
shuru8
Binary Search
Lab_I_2_25_11_2020
gauss elimination determinant calculator
validation
числа близнецы