[Tutor] Exercise in writing a python function
Alan Gauld
alan.gauld at freenet.co.uk
Wed Aug 9 18:39:41 CEST 2006
> I confused things by my mistake in the specifications.
>
> The criterion for exiting the outer loop is that
>
> mpylist[0][1] * mult[0] + mpylist[1][1] * mult[1] + mpylist[2][1] *
> mult[2]
> + . . .
>
> be > zlim.
Can you try rewriting the spec correctly, because I'm still not
sure I understand it? Are you now saying that mpylist[n][0] is never
used?
Can you show us some sample data structures - just a few entries
and how the calculations should work?
Alan G.
More information about the Tutor
mailing list