Re: How to find if a string contains another string

2007-10-29 Thread sandipm
' requires character as left operand > > Do I need to import any module? > > Thanks, > Ganesh > > -Original Message- > From: Gary Herron [mailto:[EMAIL PROTECTED] > Sent: 30 October 2007 12:09 > To: Borse, Ganesh > Cc: [EMAIL PROTECTED] > Subject:

RE: How to find if a string contains another string

2007-10-29 Thread Borse, Ganesh
nesh -Original Message- From: Gary Herron [mailto:[EMAIL PROTECTED] Sent: 30 October 2007 12:09 To: Borse, Ganesh Cc: python-list@python.org Subject: Re: How to find if a string contains another string Borse, Ganesh wrote: > Hi, > > Am new to python. > May someone please help

Re: How to find if a string contains another string

2007-10-29 Thread Gary Herron
Borse, Ganesh wrote: > Hi, > > Am new to python. > May someone please help me know this? > > How can we check whether one big string contains another small string? > > E.g. > bigstring="python anaconda boa cobra" > smallone="boa" > Use the operator named in: >>> bigstring="python anaconda boa

How to find if a string contains another string

2007-10-29 Thread Borse, Ganesh
Hi, Am new to python. May someone please help me know this? How can we check whether one big string contains another small string? E.g. bigstring="python anaconda boa cobra" smallone="boa" If 0 == contains(bigstring,smallone): print "Yes, boa is snake.." Is there any function like "co