ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi LQ,
Iam learning python and obviously on linux platform. I want to know what are the tools we have to start with.
Can somebody advise some sources, I am more interested in tools and applications that can make my learning go smooth.
First you have to download and install Python from your distribution using some package managers (easiest), or you can install manually. See here for Python download.
All new ones to Python should read the documentation. Read the tutorial, as well as the beginner guides on the site.
what tools to use? Just Python (and probably if you wish, an editor ).
Everything you need to know is at the documentation site.
install "idle" which is an ide for python.
Download the bok Byte of Python from http://www.swaroopch.com/notes/Python.
It has both python 2.x and python 3 tutorials. It is a very good book.
For a Python editor, I recommend UliPad. It's what I used to write my MPD client.
I've also used vim (which is great once set up) and Eclipse with PyDev (which is great and has PyLint integration), but UliPad should be more convenient to start with.
I suggest to find a problem first, that's where it always begins. If you have something to solve (by using python), you've got a goal and hopefully a will to solve it. Then you do it and learn in the process. If you only read books, you'll gather theoretical knowledge which you'll forget in some time, and when you really need to do something, you'll end up wondering how it went and then have to resort to the book again. Avoid that Books are good sources of information, but not as efficient as learning through trial and error. The same applies to mathematics, for example: you can read tons of solutions, but without working through the actual problems you'll never be able to solve them without outside help.
Emacs is an option, though I've recently started learning vim too. I sort of dislike the heavy "environment"-of-an-editor-things, because they're not on every machine I work at, they're heavier than simpler tools (like vim) and often require graphical user interface on top of every other thing. And yet Python is textual programming
If you can't figure anything else out, start off by writing Hello World app. Then write a program that can handle Huffman encoding and decoding. Then write a server-client chat program that can work with multiple clients. That should keep you going for a while...
Kindly do NOT start installing Python straightaway !
I would recommend to open a terminal and type python as follows and pres enter:
Code:
anisha@Eccentric-aquarian ~ $ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
and see if you get something like above. Kindly do this before trying to install Python ! Since Python is installed by default on most of the major distributions.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.