[Tutor] python programmin problem

Alan Gauld alan.gauld at yahoo.co.uk
Sun Jul 24 19:21:10 EDT 2016

On 24/07/16 20:58, Danny Yoo wrote:

> Please: I strongly encourage you to talk with your professor or study
> group: it really does sound like this is the first time you've seen these
> kinds of concepts.  

I agree with Danny, you should talk to your teacher.
I suspect the teacher may have set the problem without appreciating
the full extent of the complexity involved. It certainly doesn't
seem like you are properly equipped to solve it. Maybe he/she can
provide a simpler subset of problem.

Of course this assumes you have a teacher to ask? Your original
post doesn't state where you found the problem, it may be you
just picked it up on a web site or book  and have unwittingly
bitten off more than you are ready to chew just now?

It also depends a bit on whether the intent is to learn about
Python programming or about algorithms. If its the latter then
you might just want to ask on a different (math based) forum.
But if its Python you are interested in then find an easier
problem for now. Otherwise you will lose sight of the Python
problem in trying to solve the math one.

Alan G
Author of the Learn to Program web site
Follow my photo-blog on Flickr at:

More information about the Tutor mailing list