Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Fibonacci to the Nth number
def fib(n): '''returns the fibonacci sequence to the Nth number; Author: Wazim Karim''' result=[1,1] for i in range(0,n): result.append(result[i]+result[i+1]) return result print(fib(30))
run
|
edit
|
history
|
help
0
First
abc
Ok
Finding avg value on list
rstring
Python3: Class I : Person (ClassMethod)
Guru
Lawrence.py
Distance between latititude and longitude
metods.py