[Tutor] Help with writing a program

Mark Lawrence breamoreboy at yahoo.co.uk
Mon Dec 3 05:19:51 CET 2012


On 03/12/2012 03:59, rajesh mullings wrote:
> Hello, I am trying to write a program which takes two lines of input, one
> called "a", and one called "b", which are both strings, then outputs the
> number of times a is a substring of b. If you could give me an
> algorithm/pseudo code of what I should do to create this program, I would
> greatly appreciate that. Thank you for using your time to consider my
> request.
>

Start here http://docs.python.org/2/library/string.html

-- 
Cheers.

Mark Lawrence.



More information about the Tutor mailing list