PDA

View Full Version : Learning python



chinna saaeb
December 12th, 2011, 05:14 PM
I was on the look out for a c interpreter on linux. My objective is numeric computation. reading numbers, processing and then putting them back to a file.
I could not find.
Then I considered other interpreters . Python caught my attention. however learning python looks difficult. I tried various tutorials and sources.
For a person for whom Schuam series Programming in C is a bible, reading books like Head first Python is a nightmare. The book showed one thing- python is a list processor.
Similarly first circle tutorials also did not encourage me to touch python. (Now I feel books like head first should not be touched even with a barge pole)
I once considering hoc. but again decided to give a try to python.
I have gone to python tutorials on this forum, but they are equally good or bad- of no use)
I would like to learn python for numeric computations. First input output and then everything else.
Could any body guide

CoffeeRain
December 12th, 2011, 05:31 PM
Python is a great language! Where I first learned Python was from the Google Python classes. The main page for them is here (http://code.google.com/edu/languages/google-python-class/) I watched the videos (http://www.youtube.com/playlist?list=PL61E606149255B362) and learned quite a bit about the basics of python from them. Also if you just need to look something quick up, you could Google it, or look at the Python docs (http://docs.python.org/).

11jmb
December 12th, 2011, 07:36 PM
Check out "Learn Python the Hard Way"

http://learnpythonthehardway.org/book/

It is a good intro to the language, and somebody with programming experience can easily do multiple chapters in a sitting.

JDShu
December 12th, 2011, 07:44 PM
The process of learning Python is the same for other languages: Write code. Read code. Write some more code. Read even more code. Refer to StackOverflow and Google as required.

karlson
December 12th, 2011, 08:19 PM
I was on the look out for a c interpreter on linux. My objective is numeric computation. reading numbers, processing and then putting them back to a file.
I could not find.


I've only seen one C++ interpreter and that is in the ROOT project:
http://root.cern.ch



Then I considered other interpreters . Python caught my attention. however learning python looks difficult. I tried various tutorials and sources.
For a person for whom Schuam series Programming in C is a bible, reading books like Head first Python is a nightmare. The book showed one thing- python is a list processor.
Similarly first circle tutorials also did not encourage me to touch python. (Now I feel books like head first should not be touched even with a barge pole)
I once considering hoc. but again decided to give a try to python.
I have gone to python tutorials on this forum, but they are equally good or bad- of no use)
I would like to learn python for numeric computations. First input output and then everything else.
Could any body guide

You'd have to be a little more specific as to what kind of Numeric Computation you will need. Python is a very well documented language with lots of tutorials like:

http://www.diveintopython.net/

But depending on what you need to do you might look at other products like:

http://r-project.cran.org
MATLAB (http://www.mathworks.com/products/matlab/index.html)
Mathematica (http://www.wolfram.com/mathematica/)

These are interpreted extensible languages specifically geared for certain types of calculations.