[Tutor] Help with writing a program
Luke Paireepinart
lukepdev at gmail.com
Mon Dec 3 07:17:37 CET 2012
There is an equivalent page in the documentation for Python 3 as well,
regarding strings.
This sounds a lot like a homework problem so you are unlikely to get a lot
of help. You certainly won't get exact code.
What have you tried so far? Where are you getting stuck? We're not here
to write code for you, this list is meant to help you learn something
yourself. If you just want someone to write code for you there are plenty
of sites that will do that. But if you want to figure it out I'd be happy
to give you some hints if I can see that you're making some effort. One
effort you could make would be to find the relevant Python 3 document
discussing strings and check if it has some references to finding
substrings.
Let me know what you try and I'll help you if you get stuck.
Thanks,
-Luke
On Sun, Dec 2, 2012 at 11:31 PM, fantasticrm <fantasticrm at gmail.com> wrote:
> The Python version, is Python 3.
>
>
> On Sun, Dec 2, 2012 at 10:59 PM, rajesh mullings <fantasticrm at gmail.com>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.
>
>
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20121203/b29d1d98/attachment.html>
More information about the Tutor
mailing list