[Tutor] a quick Q: how to use for loop to read a series of files with .doc end

Prasad, Ramit ramit.prasad at jpmorgan.com
Fri Oct 7 18:33:53 CEST 2011


>what does the 
>
>        for col, ch in enumerate(line):
>

I highly recommend looking at web documentation when you can. It is not that I have any problems answering any questions, but I know I get frustrated when I am forced to learn things in 5 minute increments while waiting on people to respond. Reading the documentation will give a better idea of Python because there is *so* much more information there and the Python docs are actually quite well written.

Please read the following link and then ask us about any questions you have. http://docs.python.org/dev/library/functions.html#enumerate 


<snip>
>but today I was also discouraged, I was told that you should not have learned python, you should focus on C or bash, or D, cause python is going to be obsolete, and I defensed that I saw lots people/apps using python, and it's always good to learn a language well, it's helpful for you to understand another language. I was further told that fortran is obsolete, but still lots of fortran guys using it.
>I don't know much, since I started and wanted to learn, actually I wish to hear some encouraging words, not some words discouraging, but on another hands, it's always good to have an open mind, so I want to hear your opinion and >perspective, I am not knowledgable about this.

Language choice is an often debated subject. People are always proclaiming that a certain language is the "best" and this list probably considers Python the "best". The truth is there is no "best" language! The "best" language (in my not-so-humble opinion) is the language that allows you to effectively, quickly, and easily solve a specific problem. Use the best tool (i.e. language) for the problem; just because you know how to use a hammer does not mean that you should use it for cooking! :)

As for encouraging words, well...that is not really something I am good at. When you get stuck or bogged down in frustration, remember that learning occurs most often by making mistakes first and then learning to avoid those mistakes.

Ramit


Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  


More information about the Tutor mailing list