none - output

Anton Vredegoor anton at vredegoor.doge.nl
Sat Nov 9 13:56:04 EST 2002


On Sat, 9 Nov 2002 18:59:28 +0100, "Christian Stockhammer"
<christian.stockhammer at students.uni-linz.ac.at> wrote:

>Hello List!
>
>I wrote a litte program that will print out the rates of a credit, but i
>face some problems. Here is the code:

<snip some code>

To start with, it would be nicer to keep the indentation information
in the posting, because then it's easier to check what's going on.

>for i in range(0,5):
>
>zinsen = (schuld*zinsfaktor)/100
>
>echtetilgung=tilgung-zinsen
>
>i = i + 1

Here the loop var is possibly incremented, I can't be sure because
the indentation is missing. If the loop var *is* incremented: That is
almost always a bad thing to do.

Regards,
		Anton.



More information about the Python-list mailing list