Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

GOOG's self-driving car written in FIOC

Name: Anonymous 2012-03-09 14:32

Problem?

Name: Anonymous 2012-03-11 18:52

>>16

>>> def f(n):
...   if(n==1 or n==2):
...     return 1
...   else:
...     return f(n-1)+F(n-2)
...
>>> f(1)
1
>>> f(2)
1
>>> f(3)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<stdin>", line 5, in f
NameError: global name 'F' is not defined
>>>

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List