Recursive function

Ana Dionísio anadionisio257 at gmail.com
Tue Mar 5 16:32:11 CET 2013


Hello!

I have to make a script that calculates temperature, but one of the
parameters is the temperature in the iteration before, for example:
temp = (temp_-1)+1

it = 0
temp = 3

it = 1
temp = 3+1

it = 2
temp = 4+1

How can I do this in a simple way?

Thanks a lot!



More information about the Python-list mailing list