How to write a simple program in Python (opening files and parsing text)

    Question by:



    I recently was asked to become familar with Python.  I figure the best way to do that is to take a simple application in C/C++ and make it work in Python.  Hence, my questions are these:

    1)  What makes Python different from C/C++?
    2)  Will Python perform the same basic functions as C/C++ like opening files and string manipulations
    3)  Is there an editor available for download that will enable me to test a product or do I need to purchase one?


    Good Question?

    Verified Answer?

    The member who asked this question verified this comment provided the solution that solved their problem.

    by:Posted on 2007-11-02 at 01:05:37ID: 20198822

    O.K. People differ and use a different approach to solving things. "My editor" is the thing very close to the heart of the developer. Logical arguments do not work here as people have different expectations and feelings.

    Another editor that I like and that supports Python sources is (free) jEdit  It is written in Java, thus cross-platform. Because of that (written in Java, as also Eclipse is) it is a bit slower than editors written in compiled languages, but (in my opinion) its friendliness to the user and the features overweight the negatives. It supports more than 130 (programming) languages and there is a lot of plugins that can make your life easier. Some people say it is not so heavy-weight as Eclipse. Read the reviews of jEdit at

    This content is available to Experts Exchange members

    See the answer now
    with your Free 30 Day Trial

    Get unlimited access to solutions & experts

    • 4,169,477 solved questions
    • 3,805 articles & videos
    • 15,413 tech experts

    Get Access Now

    Ask Your Tech Question. Get Expert Solutions.We will email you when an expert has commented on your question.

    We will never share this with anyone.

    Select topics

    You may select up to five topics.

    Top Expert Contributor

    Essential articles and videos from the Experts

    More valuable questions with Expert answers




    pepr has answered 791 questions on Experts Exchange and is an expert in Python, C++ and Programming.

    RELATED TOPICS view all topics

    1. Scripting Languages
    2. Programming
    3. Programming Languages
    4. Linux
    5. Perl
    6. MySQL Server
    7. PHP
    8. Shell Scripting
    9. VB Script
    10. Java