
Nathan F. answered 02/06/21
Economics Major Graduate
Leticia,
Here is one approach that solves your problem regarding string manipulation:
Please do not hesitate to ask for further explanation!
Leticia G.
asked 02/05/21How to convert emails in the form - [email protected] to full name in the form LAST, FIRST
Nathan F. answered 02/06/21
Economics Major Graduate
Leticia,
Here is one approach that solves your problem regarding string manipulation:
Please do not hesitate to ask for further explanation!
Patrick B. answered 02/06/21
Math and computer tutor/teacher
def parseEmail(email):
tokens = email.split("@")
nameTokens = tokens[0].split(".")
strReturn = nameTokens[1] + "," + nameTokens[0]
return(strReturn)
#################################################
email = "[email protected]"
nameReturn = parseEmail(email)
print(str(nameReturn))
Get a free answer to a quick problem.
Most questions answered within 4 hours.
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.