Python The Worlds Most flexible and easist Language..

sri_lion

Member
Sep 14, 2006
12,908
102
0
Kuala Lumpur
nagaya said:
u mean shld we go for .net fw?:confused:

NO! I think this is why we should be neutral.. I dont think we should straight away jump into the Open Source bandwagon.. it is undeniable that people would initially go for OS because most of the time it is free!

Although community efforts are really good for the sake of the technology, at times you cant really trust/expect on Open Source applications provide you that dedicated attention that closed source provides you! There are some amazing Open Source software out there with POOR documentation and Support! So what's the point? When you join the bandwagon and commit yourself into it.. the next thing you know is oops.. where's the support? But for majority Home Office, SME sort of sectors Open Source could still work fine! But Mostly when there's a situation that demands Mission critical applications most organizations tend to go for Commercial Applications!

So I think rather than you taking sides.. Microsoft / Commercial Apps Sucks and Open Source rules... why not take best of both worlds? :D
 

henderson

Active member
  • Nov 24, 2007
    3,150
    2
    38
    Senior Executive, Goldman Sachs
    x-pert said:
    Are you the author of this book?
    Good job if you're the author.


    But Python is not good for the industry. It uses an interpreter rather than a compiler at the first place. For penetration testing, python is good. But that's a small area of the IT world.

    World is moving towards Java and .NET apps. And still people use C language a lot. So the best starting point to learn programming is C language in my opinion. Many languages are built on top of C.

    I agree, however I do not know much about python but when it comes to Java and .NET my best guess is Java is way ahead of .NET (I have worked full time 3 years Java and 1 year .NET).
     

    gayan kalhara

    Member
    Nov 22, 2007
    7,060
    48
    0
    x-pert said:
    Are you the author of this book?
    Good job if you're the author.


    But Python is not good for the industry. It uses an interpreter rather than a compiler at the first place. For penetration testing, python is good. But that's a small area of the IT world.

    World is moving towards Java and .NET apps. And still people use C language a lot. So the best starting point to learn programming is C language in my opinion. Many languages are built on top of C.

    ya i am

    But as your thought :no:

    I think you are thinking as a Windows User ha.....

    But Take a Look at FOSS like Linux and SUSE(a linux also)...
    And also the Web Industry (Google is using Python) You will see the difference.

    Ya i know Python has many and many week points But when we come to the End of Our Project. we can Feel COOL (If your a programmer You know what i'm talking about)

    JAVA and .net are the Best in their NOISE But in the Field.........................................
     

    ni_shi2005

    Member
    May 26, 2007
    8,034
    7
    0
    36
    @ No Job Company!
    ammatahudu.........ada thamai machan danne Python mechara weda kiyala!!
    mamath oya python eka thama iganagandone........am doin a Diploma in Programing.......
    aftr finishin dem must do Python.......can u tel me a good class to do dat!!
     

    madurax86

    Member
    Jun 29, 2006
    4,385
    88
    0
    sri_lion said:
    Whoa!!! :lol::lol: You are making a VERY BIG statement there mate :lol::lol::lol:

    Especially about JAVA! :lol:

    yup it may have some draw backs when compared with a language like c++/c but man JAVA is light years ahead of python and .NET dont under estimate dude :P

    ps: not a 'statement' a big mistake hehe
     

    gayan kalhara

    Member
    Nov 22, 2007
    7,060
    48
    0
    ni_shi2005 said:
    ammatahudu.........ada thamai machan danne Python mechara weda kiyala!!
    mamath oya python eka thama iganagandone........am doin a Diploma in Programing.......
    aftr finishin dem must do Python.......can u tel me a good class to do dat!!

    Unfortunately As i know there are NO such a Class. Or institute for Study Python.

    But there are whole internet for lerning... hehe eheh eheheh eh.

    I learned it my self. and i'm only 16 years.. (can't believe ha..)

    DO IT YOUR SELF.. But as i know there some ppl who know and work with python.

    If your not interested in Self Learning. Try to find Such a one...

    IF you find a Class or other institution that have python. Tell me.....
     

    gayan kalhara

    Member
    Nov 22, 2007
    7,060
    48
    0
    part 4 Count to 10

    4.1 While loops

    Presenting our first control structure. Ordinarily the computer starts with the first line and then goes down from there. Control structures change the order that statements are executed or decide if a certain statement will be run. Here’s the
    source for a program that uses the while control structure:

    a = 0
    while a < 10:
    a = a + 1
    print a

    And here is the extremely exciting output:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    (And you thought it couldn’t get any worse after turning your computer into a five dollar calculator?) So what does
    the program do? First it sees the line a = 0 and makes a zero. Then it sees while a < 10: and so the computer
    checks to see if a < 10. The first time the computer sees this statement a is zero so it is less than 10. In other words
    while a is less than ten the computer will run the tabbed in statements.
    Here is another example of the use of while:

    13
    a = 1
    s = 0
    print ’Enter Numbers to add to the sum.’
    print ’Enter 0 to quit.’
    while a != 0 :
    print ’Current Sum:’,s
    a = input(’Number? ’)
    s = s + a
    print ’Total Sum =’,s
    The first time I ran this program Python printed out:
    File "sum.py", line 3
    while a != 0
    ˆ
    SyntaxError: invalid syntax
    I had forgotten to put the : after the while. The error message complained about that problem and pointed out where
    it thought the problem was with the ˆ . After the problem was fixed here was what I did with the program:

    Enter Numbers to add to the sum.
    Enter 0 to quit.
    Current Sum: 0
    Number? 200
    Current Sum: 200
    Number? -15.25
    Current Sum: 184.75
    Number? -151.85
    Current Sum: 32.9
    Number? 10.00
    Current Sum: 42.9
    Number? 0
    Total Sum = 42.9

    Notice how print ’Total Sum =’,s is only run at the end. The while statement only affects the line that are tabbed in (a.k.a. indented). The != means does not equal so while a != 0 : means until a is zero run the tabbed in statements that are afterwards. Now that we have while loops, it is possible to have programs that run forever. An easy way to do this is to write a program like this:

    while 1 == 1:
    print "Help, I’m stuck in a loop."

    This program will output Help, I’m stuck in a loop. until the heat death of the universe or you stop it.

    Tip
    The way to stop it is to hit the Control (or Ctrl) button and ‘c’ (the letter) at the same time. This will kill the program. (Note: sometimes you will have to hit enter after the Control C.)
     

    x-pert

    Member
    Jun 13, 2006
    20,952
    77
    0
    gayan kalhara said:
    ya i am

    But as your thought :no:

    I think you are thinking as a Windows User ha.....

    But Take a Look at FOSS like Linux and SUSE(a linux also)...
    And also the Web Industry (Google is using Python) You will see the difference.

    Ya i know Python has many and many week points But when we come to the End of Our Project. we can Feel COOL (If your a programmer You know what i'm talking about)

    JAVA and .net are the Best in their NOISE But in the Field.........................................

    I am a windows vista and a redhat user.

    And what you are trying to claim is dead wrong. Java, .NET do have the noise, and do have their performance as well - especially java.

    Yes, Google is using python. But that's after C++ and Java. More than Python, Google uses Perl and Ruby too. Verify from a person working at google if you want :D. (I know these things because my work place works with Google Australia closely ;))

    I'm not under estimating the power of Python here buddy. It is a good language :yes:
     

    x-pert

    Member
    Jun 13, 2006
    20,952
    77
    0
    gayan kalhara said:
    So you are saying you are the author right? :dull:

    What about these then bro?

    http://en.wikibooks.org/wiki/Python_Programming/Loops

    your 4.1 while loop is a exact copy of this neda?


    and session 3.1 Input and Variables is a copy of this neda?

    http://docs.activestate.com/activepython/2.5/easytut/node5.html

    Appreciate your effort of collecting information from various sources and putting them together in a single location. But acknowledge the original source please.
     
    Last edited:

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    well since you're so fast to put down other languages, do post the necessary python codes to display a 640x480 window with a clickable button and when that button is clicked it show display a simple "Hello World" in a system message box.
    Lets see how small the amount of lines of code are to do that in python.
     

    mldarshana

    Well-known member
  • Apr 2, 2007
    34,059
    1,404
    113
    ආශ්චර්ය අභියස :nerd:
    x-pert said:
    I am a windows vista and a redhat user.

    And what you are trying to claim is dead wrong. Java, .NET do have the noise, and do have their performance as well - especially java.

    Yes, Google is using python. But that's after C++ and Java. More than Python, Google uses Perl and Ruby too. Verify from a person working at google if you want :D. (I know these things because my work place works with Google Australia closely ;))

    I'm not under estimating the power of Python here buddy. It is a good language :yes:

    machan ... is python for both Desktop apps and web apps ?
     

    x-pert

    Member
    Jun 13, 2006
    20,952
    77
    0
    mldarshana said:
    machan ... is python for both Desktop apps and web apps ?

    Mainly for web apps machang.

    Desktop apps walta wadiya use karanne naha, java, c, c++ thiyena nisa.
    Namuth game development walata ehama nam use karanawa. http://pygame.org/news.html

    eth, godak wita python use karanne over the web thamai. web services, cgi scripts ekka embed karanna puluwani mama danna widihata. and network programming too.
     

    mldarshana

    Well-known member
  • Apr 2, 2007
    34,059
    1,404
    113
    ආශ්චර්ය අභියස :nerd:
    x-pert said:
    Mainly for web apps machang.

    Desktop apps walta wadiya use karanne naha, java, c, c++ thiyena nisa.
    Namuth game development walata ehama nam use karanawa. http://pygame.org/news.html

    eth, godak wita python use karanne over the web thamai. web services, cgi scripts ekka embed karanna puluwani mama danna widihata. and network programming too.

    thax 4 da info :)