Python is a widely used general-purpose, high-level programming language. Its design philosophy emphasizes code readability, and its syntax allows programmers to express concepts in fewer lines of code than would be possible in languages such as C. The language provides constructs intended to enable clear programs on both a small and large scale. Python supports multiple programming paradigms, including object-oriented, imperative and functional programming or procedural styles. It features a dynamic type system and automatic memory management and has a large and comprehensive standard library.
Lets start by viewing a small program in python console for swapping two numbers:
It’s as easy as that. Interested yet? Read on..
Python is free and works on Linux, Mac and Windows, go to the official python site and download the version specific to your OS and processor(32 or 64) For windows when you run the msi file ensure you select, add python exe to path, it is not installed by default. For most Unix systems, python comes as pre-installed.
Python comes in two versions as if now and has always been a centre of discussion as to which one to prefer to. You can decide for yourself by viewing Python Official Wiki. Though personally I use Python 2.7 because currently not all frameworks has extended support for python 3.x and so does most users worldwide. It’s simply not a version change with python. It’s an overall syntax chage-over too. Go through details of the syntax and make sure by the respective documentations.
Next what you will need is an editor. Personally, I like Sublime Text but you can have your pick from a vast ever-increasing editor collection. Though editors is what I use, sometimes people like to stick to IDEs or Integrated Development Environments. So, in-case you are looking for a good IDE for python. Arguably, IDE is a bad beginner habit. Anyway, choice is yours. So, get started with coding now.
Here are a few code samples to get you started. Also in case you wanna follow a book, here’s a few top book picks. There are plenty of free online tutorials and books freely available. You can also just go to Learn Python the Hard Way and start, Zed Shaw’s tutorial is laid out in exercise format. Another good one is a Byte of Python. You can always take an online course via coursera.org, or edx.org, actual university run courses that are graded/scored. People say [codeacademy] but I think that’s entirely upto perception.
Two self paced courses, no official grading:
MIT open courseware, Introduction to Computer Science and Programming MIT 6.00x. This course has a very active online community, many people do it.
University of Michigan, Programming for Everybody.
Get started a traditional way:
Just kidding. That’s no traditional way. But I love the poem nevertheless.
So, now you are ready to pop your hood in the Cheese Shop. You can view the list of packages available for use in here.
Finally, if you are already a developer, you can look into the dev section. For any more queries, go throught the Frequently Asked Questions.
Happy Coding!! :)