[Tutor] Search function
Andrei Kulakov
ak@silmarill.org
Thu, 08 Nov 2001 00:46:38 -0500
On Thu, Nov 08, 2001 at 01:35:29PM +0800, Edy Lie wrote:
> Hi
>
> Is there any sample code on doing search function in python ? Scenario is
> user asked to input a string and it will search thru a file and print out
> the details.
>
> Regards,
> Edy Lie
Look at string.find() function.
>
>
> _______________________________________________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
--
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org