i am new to learning jython...
i just tried compiling a small piece of code that is given below:
def fac(x)
if x<=1:return 1
return x*fac(x-1)
on
C:\Program Files\jython\temp>jythonc factor.py
it showed the following error:
processing factor
Traceback (innermost last):
File "C:\Program F
>
> Try this:
>
> def fac(x):
> if x<=1:return 1
> return x*fac(x-1)
I am still getting an error in compilation. Would be really thankful if
someone could tell me as to what is going wrong.
processing factor
Required packages:
Creating adapters:
Creating .java files:
factor module
Compili
> You really have a book about python that doesn't mention that functions
> definitions are closed by a colon? I doubt that...
It is not python but jython. But I dont think that the syntax of both
of them are different.
I managed to download the tutorial of jython from the IBM website. I am
wond
Kent Johnson wrote:
> fidlee wrote:
> >>Try this:
> >>
> >>def fac(x):
> >> if x<=1:return 1
> >> return x*fac(x-1)
> >
> >
> > I am still getting an error in compilation. Would be really thankful if
> > someone could tel