python extract name out of mail

77

python extract name out of mail -

mail = "[email protected]"
name = mail.split("@")[0].replace("."," ")
# splits it at the @, grab the first part and replace the "." with a space
# you get "studentvn studentfn"

Comments

Submit
0 Comments