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.
hello guys i have never tryed programming anyhing. i was wondering inhow i can start learning python. i use archlinux with openbox. do i need any specific tools or jsut a text editor? sorry for the noob question . from the tutorials online i see many tools like pygtk glade and so on and i cant understand anything
As far as what you need, you can use an IDE or just a plain text editor. For being a beginner, I recommend using an IDE like eclipse so it will help you as far as syntax highlighting, etc.
Here are a few links to get you started with python:
Notice to you though: I have found these links via searching on google. Please be advised for future reference that you should search either online or within these forums before you go posting brand new threads. Thanks.
Learn programming design. Beginners often ignore this important part. To design a program, try to express what you have in mind and put it on paper first in a way that others can understand it and then use this as the basis for commenting. You may use conventions like flow charts or uml.
Learn how to comment for that language.
Read but also play.
Start small with a basic hello world.
Learn the input, the output, the operators, condition statements, loops, the syntax in general and learn how you can use it.
Make a habit of adding a statement, compiling and running and if and only if it works move on to the next.
Try to make errors.
Learn to program in expanded form before programming in compressed form. Generally speaking expanded form is preferred because it is clearer to read.
Compressed form is like: afunction{y=(dothis(dothat(....)));}
Expanded form is like:
afunction
{
x = dothat();
y = dothis(x);
}
Learn the language's library but before using the library itself try creating the parts yourself.
Here's a book you may find useful. It's available for free if you just Google it so I'm not violating anybody's copyright. Just read, write programs, experiment, and have fun. I use the default python IDE called IDLE, but it's very basic. It does syntax highlighting and highlights unclosed brackets, but that's about it. One thing it does allow you to do is to run a check on the whole file before you try running it to look for problems. You can find it in the python-tools package I believe.
Last edited by dudeman41465; 02-21-2011 at 02:30 PM.
Python is awesome, man. Eclipse is a great IDE for python, but you'll want PyDev which you can get from sourceforge. Installation is easy, just extract the plugins and features folders to the root directory of eclipse, and then find the eclipse properties, locate the pydev list in the tree, and point the interpreter to the python binary.
From there, create files, name them something.py, and run them as python applications or whatever.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.