Sunday 29 September 2013

Python convert email

Python convert email

I am writing a small program that reads in email and outputs only part of it.
Example
someone.lastname@example.com
I want the output to be someonel
so in this case i want the first part of the email before the "." and then
the first letter of the second part in this case "l"
I need some assistance on how to concatenate these 2 parts taking only one
character from the second part after the "."
thank you in advance

No comments:

Post a Comment