' 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:
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
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
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