Newbie question

Fredrik Lundh fredrik at pythonware.com
Tue May 25 09:05:27 EDT 2004


"mp312" <Mark.Puchalski at honigman.com> wrote:

> Taking a user id that is in the format 'userid at MACAddress', read the
> userid portion (varying length) and concatenate with @honigman.com.

here's one way to do it:

    userid.split("@")[0] + "@honigman.com"

for more on string/text handling in Python, see:

    http://gnosis.cx/TPiP/

</F>







More information about the Python-list mailing list