M.N.A.Smadi 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")
--
"Codito ergo sum"
Roel Schroeven
On Wed, 02 Mar 2005 16:43:29 -0500, M.N.A.Smadi
<[EMAIL PROTECTED]> 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?
>
d
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?
thanks
m.smadi
--
http://mail.python.org/mailman/listinfo/python-list