Click here to Skip to main content
11,490,292 members (52,139 online)
Click here to Skip to main content

Tagged as

How to make python faster

, 7 Jan 2013 CPOL 6K 5
Python and other scripting languages are sometimes dismissed because of their inefficiency compared to compiled languages like C. For example here are implementations of the fibonacci sequence in C and Python:int fib(int n){ if (n < 2) return n; else return fib(n - 1) + fib(n - 2);}int m


Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Richard Penman

Australia Australia
No Biography provided

| | Privacy | Terms of Use | Mobile
Web01 | 2.8.150520.1 | Last Updated 7 Jan 2013
Article Copyright 2013 by Richard Penman
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid