GHC Trac Home
GHC Home
Joining In
Working on GHC
Mailing Lists & IRC
GHC Contributors
Documentation
Status Reports
Repositories
Building Guide
Commentary
Debugging
View Tickets
All Bugs
All Tasks
All Feature Req's
All Proposals
My Tickets
Tickets I Created
By Milestone
By OS
By Architecture
Patches for review
Create Ticket
New Bug
New Task
New Feature Req
Wiki
Title Index
Recent Changes
Wiki Notes
Search:
Login
Help/Guide
About Trac
Register
Forgot your password?
Preferences
Wiki
Timeline
Roadmap
View Tickets
Dashboard
Blog
Context Navigation
Back to Ticket #6000
Ticket #6000
: pyfib.py
File pyfib.py,
191 bytes
(added by guest,
14 months
ago)
Python implementation
Line
1
2
def
fib
(
n
):
3
one
=
0
4
two
=
1
5
for
i
in
range
(
0
,
n
):
6
temp
=
two
7
two
=
one
+
two
8
one
=
temp
9
return
two
10
11
if
__name__
==
"__main__"
:
12
print
fib
(
1000000
);
Download in other formats:
Original Format