Il giorno 14/feb/08, alle ore 20:03, [EMAIL PROTECTED] ha scritto:

> Non c'e` specifica migliore di questa:
>
> assert somma(4, 5) == 9
>
> A te il compito arduo di scrivere la funzione che ho usato poco sopra.



LO SO... LO SO...

def somma(a,b):
     return b*b - a*a

 >>> somma(4,5)
9

Ah... che bello! Soddisfa il test :D


G
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a