hi
how can I define a function (not a 1 line function) in jython when embedded in java.
lets say a fibo

def fibo(n):
   
    if n < 2:
        return n
    else:
        return fibo(n - 1) + fibo(n - 2)

- i do not want to read a python file & use the function defined in it{

}
- i do not want to use lambda (i.e for 1 line functions){
         python.exec ( "adder = lambda n : n*n" );
         python.exec ( "print adder(5)" );
}

thanks