substring matching
Bill Mill
bill.mill at gmail.com
Wed Mar 2 16:45:12 EST 2005
On Wed, 02 Mar 2005 16:43:29 -0500, M.N.A.Smadi
<smadim2 at grads.ece.mcmaster.ca> wrote:
> hi;
>
> say i have the following variable
>
> data="""XYZ dflsjdfkl sdfsdhfl
> jdsflkdsjf
> sldjfsldjf
> """
>
> i need to make sure that the first part is actually XYZ, is there an
> easy way of doing that?
>
data.startswith('XYZ')
Please read the python tutorial at http://docs.python.org/tut/tut.html .
Peace
Bill Mill
bill.mill at gmail.com
More information about the Python-list
mailing list