Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
fb_series
#python 2.7.12 def fibonacci(n): pre = 0 now = 1 i = 1 yield now while (i < n): now, pre, i = now+pre, now, i+1 yield now n = 10 print 'Entered number = ', n for a in fibonacci(n): x = a print 'nth fibonacci number = ',x
run
|
edit
|
history
|
help
0
Replace
Problem: binary
Chain length calculator
a
Gardener
GardenerList
Problem: rstring
Problem Name: single_digit
Python
TIC TAC TOW.py