Fortran vs Python - Newbie Question

kyosohma at gmail.com kyosohma at gmail.com
Mon Mar 26 15:40:49 CEST 2007


On Mar 26, 8:20 am, "Noma... at gmail.com" <Noma... at gmail.com> wrote:
> OK...
> I've been told that Both Fortran and Python are easy to read, and are
> quite useful in creating scientific apps for the number crunching, but
> then Python is a tad slower than Fortran because of its a high level
> language nature, so what are the advantages of using Python for
> creating number crunching apps over Fortran??
> Thanks
> Chris

While I have never personally dealt with Fortran, I looked it up here:

http://en.wikipedia.org/wiki/Fortran_code_examples

The code examples speak for themselves. I recommend you look those
over and then look over similar simple program written in Python.
Python is still easier to read. Fortran also appears to be a compiled
language, whereas Python is an interpreted language. Thus, Python
programs can be tested faster. Fortran programs will likely run faster
though.

Check out www.python.org for good examples of Python code for the
beginner and the advanced programmer.

Mike




More information about the Python-list mailing list