Answers for "python extract name out of mail"

0

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"
Posted by: Guest on March-05-2021

Code answers related to "python extract name out of mail"

Python Answers by Framework

Browse Popular Code Answers by Language