s="CastinTime"<br>
if s.find("Time") != -1:<br>
    print "found"<br>
else:<br>
    print "not found"<br><br><div><span class="gmail_quote">On 3 May 2007 00:35:57 -0700, <b class="gmail_sendername"><a href="mailto:saif.shakeel@gmail.com">saif.shakeel@gmail.com</a></b> <<a href="mailto:saif.shakeel@gmail.com">
saif.shakeel@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>    How can i match a part of string and branch to some part of code.
<br>Ex If there is a string like "Timeout" and i want to search only<br>whether the word "Time" is present in it(which is valid in this<br>case).so if i have "CastinTime",still this should hold.
<br>   I need to use this in a "if" statement and code.Can someone help me<br>in this.<br>                          
Thanks .<br><br>--<br><a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a><br></blockquote></div><br><br clear="all"><br>-- <br>Regards--<br>Rishi Pathak<br>
National PARAM Supercomputing Facility<br>Center for Development of Advanced Computing(C-DAC)<br>Pune University Campus,Ganesh Khind Road<br>Pune-Maharastra