Newbie to python --- why should i learn !

s0suk3 at gmail.com s0suk3 at gmail.com
Thu May 8 07:17:01 EDT 2008


On May 8, 5:25 am, "Ra... at MyKavita.com" <raxitsheth2... at gmail.com>
wrote:
> Hi,
>
> i was reading/learning some hello world program in python.
> I think its very simillar to Java/C++/C#. What's different (except
> syntax) ?
>
> what can i do easily with python which is not easy in c++/java !?
>

Are you a newbie to Python, or to programming in general? I'll assume
you are a newbie to programming in general because of that last
question you asked. Things in Python are easier than in almost any
other programming language. Here are three Hello World programs:

--------------C++---------------------
#include <iostream.h>

main()
{
    cout << "Hello World!";
    return 0;
}
--------------------------------------

-------------Java---------------------
class HW {
    public static void main(String args[]) {
        System.out.println("Hello World!");
    }
}
--------------------------------------

------------Python--------------------
print "Hello World!"
--------------------------------------

--------------C#----------------------
<I have no idea!>
--------------------------------------

I think you can clearly see which one is easiest. Of course, that
doesn't mean that the "easiest" language is always the "best"
language, although it is a strong point. But ease of use is just a one-
in-a-million characteristic of Python. If you're a total beginner, I'd
recommend you learning the one that attracts you the most.



More information about the Python-list mailing list