Jump to content

Recommended Posts

Posted

is there anyone who is well versed in python or capable of sharing the basics of python language. just help me to start off with the python language; i will develop from that. thanks

Posted

http://bit.ly/WiINNu

 

please don't take this the wrong way, but is there something wrong with any of the first 20 or so links that come up when you Google "Introduction to Python" or "Python Tutorial"? e.g. http://docs.python.org/2/tutorial/introduction.html straight from the source.

 

or similarly any of the number of books when you search for the same thing at Amazon:

http://www.amazon.com/Python-Programming-Absolute-Beginner-Edition/dp/1435455002/

 

if you have specific questions about python, ask away, but I don't understand what you are asking for from the forum that you can't get from the above...

Posted

ok then, i will begin with asking queries as and when i get them in the process of learning python. i was just wanting to know the importance and multiple uses of python as a programming language in some simple english language...

anyways thanks for your reply bignose. if you see this post, please try to explain me the applications and purposes of python as a programming language.

thanks.

Posted

i was just wanting to know the importance and multiple uses of python as a programming language in some simple english language...

 

well, that is a rather different question than what you asked in the OP, isn't it?

 

Python is a very high level language, dynamically typed, and very object-orientated but not requiring that you use the OO paradigm. While the base language is very powerful, its real strength comes from how extendable it is with the very wide variety of modules that can be imported to do very specific things (see a list here: http://pypi.python.org/pypi/).

 

Beyond that, python does all the things other programming languages do. For more details, see the tutorials I referenced above.

 

Really, such a general question doesn't have a good answer. Because, like with a lot of programming languages, it's uses are limited only by what you can imagine. It's 'importance' is also a tricky question to answer. Tiobe lists it as the 8th most popular language in use today: http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html

 

What I really like about it is what I wrote above: its extendability. I like that for a lot of things you want to do, someone had made a pretty decent module for it already.

 

Now, can other languages do a lot of things python does? of course. And, I'd even say there are a lot of things that other languages do a lot better. But python can do a lot itself. There are far worse languages to consider.

  • 2 weeks later...
Posted (edited)

why is there semicolon ( ; )at the end of some statements and not at the end of some other statements; in the same tutorial for python programming language?????!

 

please help me with this. thanks.

Edited by tinku
Posted

Python seems the easiest to learn because it most resembles our language, you also dont get so bogged down in brackets and has some neat implementations of things you'd otherwise have to create yourself, like the structure of for loops and the deceleration of variables. Basically you can spend more time bashing keys than reading up on how things work.....

Posted (edited)

A semicolon is an end-of-line marker in python. This is useful if you want to put more than one line of code on the same line in the editor.

 

However, a carriage return is also an end-of-line marker (barring other ways of telling the compiler you AREN'T at the end of a line).

 

And in fact, if you read the python style guide, they really strongly urge against multiple lines of code on the same line of text. But, I am sure someone really wanted to do it, so the compiler knows what to do with it.

 

See http://www.python.org/dev/peps/pep-0008/#other-recommendations about 'compound statements'

Edited by Bignose
Posted

Python is a programming language, you work more quickly and integrate your systems more effectively. This reference manual describes the syntax and “core semantics” of the language.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.