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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to