LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-08-2010, 04:51 AM   #1
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Rep: Reputation: 5
"Starting with python"


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.
 
Old 10-08-2010, 05:05 AM   #2
ghostdog74
Senior Member
 
Registered: Aug 2006
Posts: 2,697
Blog Entries: 5

Rep: Reputation: 244Reputation: 244Reputation: 244
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.
 
Old 10-08-2010, 05:06 AM   #3
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Rep: Reputation: 29
Smile

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.

Have fun.
 
Old 10-08-2010, 05:42 AM   #4
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Original Poster
Rep: Reputation: 5
Thanks a lot. That should keep me busy atleast for now.
 
Old 10-08-2010, 01:23 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
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.
 
Old 10-08-2010, 02:42 PM   #6
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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...
 
Old 10-08-2010, 03:55 PM   #7
adenial
Member
 
Registered: Sep 2010
Location: Bangalore, India
Distribution: rhel5, ubuntu9.04(occassionally), Debian.
Posts: 87

Original Poster
Rep: Reputation: 5
@bouncer & dugan.
Thanks, I am using VIM as python IDE. Din't try any other yet.
Infact VIM seems perfect as if now.
 
Old 10-10-2010, 10:22 AM   #8
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
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.
 
Old 10-10-2010, 10:26 AM   #9
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
+1 for running "python" on the command line, you probably have it installed already.

Also, if you do so, it will come up with an interactive prompt where you can type Python code and have it interpreted as you go.
 
Old 10-10-2010, 12:21 PM   #10
pr_deltoid
Member
 
Registered: Jun 2010
Distribution: Fedora
Posts: 289

Rep: Reputation: 41
http://openbookproject.net/thinkcs/python/english2e/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can I "cat" or "grep" a file to ignore lines starting with "#" ??? callagga Linux - Newbie 7 08-16-2013 06:58 AM
How to deal with filenames starting with "-" or "--"? [KIA]aze Linux - Newbie 2 07-08-2007 01:31 AM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
[python] print "\033[5;",x,"H=>" datbenik Programming 1 01-05-2006 05:12 AM
User "list" running process "python" TroelsSmit Linux - Newbie 2 02-22-2005 04:55 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration