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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
01-20-2011, 12:03 AM
|
#1
|
Member
Registered: Jan 2011
Location: Maharashtra,India
Distribution: mint 18.2
Posts: 125
Rep:
|
Help in python..?
Dear reader,
I have python 2.6.6 in ubuntu 10.10. Also I got Gvim editor. Pls tell me everything about the programming python.I can only able to run print'x' type right now.Please tell me from basic as I am very new and less in knowledge.
Thanks a lot...
|
|
|
Click here to see the post LQ members have rated as the most helpful post in this thread.
|
01-20-2011, 12:12 AM
|
#2
|
Senior Member
Registered: Dec 2008
Posts: 4,732
|
All the documentations are here: http://www.python.org/
|
|
1 members found this post helpful.
|
01-20-2011, 12:24 AM
|
#3
|
Member
Registered: Mar 2010
Location: There
Distribution: Linux Mint 17.1
Posts: 237
Rep:
|
This should be in the Programming section, not here. Google around, thousands of free python tutorials online.
|
|
1 members found this post helpful.
|
01-20-2011, 01:39 AM
|
#5
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Moved: This thread is more suitable in <PROGRAMMING> and has been moved accordingly to help your thread/question get the exposure it deserves.
|
|
|
01-20-2011, 01:47 AM
|
#6
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,372
|
|
|
|
01-20-2011, 01:53 AM
|
#7
|
Member
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
|
Quote:
get the exposure it deserves.
|
And here I thought it was great where it was. 
|
|
|
01-20-2011, 02:12 AM
|
#8
|
Member
Registered: Jan 2011
Location: Maharashtra,India
Distribution: mint 18.2
Posts: 125
Original Poster
Rep:
|
See I know all about the available data on net about python but dear my question is I cant understand things unless one come to me and tell or teach me things in personal way. A simple and step by step guidance for writing code in which editor?where to save it?how to run it in GNOME terminal?how to do everything in simple manner.
Thank you.
Dont be angry on my silliness but Its my weak point about study.
|
|
|
01-20-2011, 02:31 AM
|
#9
|
Member
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
|
Ah! Direct questions! Excellent!
Quote:
A simple and step by step guidance for writing code in which editor?
|
I use "vim". Handles syntax highlighting on-the-fly so I know when I've got a typo somewhere.
Well, I keep a "scripts" directory within my home directory, and I have "~/scripts" in my path.
If I put something into a Production environment, I usually create a small filesystem called "contrib" and mount it up.
(Most of my self-created filesystems I put under /mnt, so that would be /mnt/contrib)
Quote:
how to run it in GNOME terminal?
|
"name_of_script.py" usually works for me. (As long as it's in my ~/scripts directory, and ~/scripts is in my path)
Quote:
how to do everything in simple manner?
|
Easy one. Whenever I'm in a crunch, or I just can't be bothered to hammer-out the code, I outsource it!
My latest pet-project is a PHP-based web GUI for a command-line tool I wrote. I'm really bad with PHP, so it made sense.
However, I think you may have missed this important link I provided earlier.
Quote:
my weak point about study.
|
Well, I discovered at a young age that everyone learns things differently;
Some people will remember things when they read them, others when they hear things spoken out loud.
Some even learn by writing down what they read (something about having to rewrite what they're reading-in just makes things stick...weird).
Personally? I just keep a website of interesting stuff I've learned over the years. That way I always have access to it!
Good luck out there!
|
|
1 members found this post helpful.
|
01-20-2011, 02:32 AM
|
#10
|
Member
Registered: Mar 2010
Location: There
Distribution: Linux Mint 17.1
Posts: 237
Rep:
|
Quote:
Originally Posted by Piyush M
See I know all about the available data on net about python but dear my question is I cant understand things unless one come to me and tell or teach me things in personal way. A simple and step by step guidance for writing code in which editor?where to save it?how to run it in GNOME terminal?how to do everything in simple manner.
Thank you.
Dont be angry on my silliness but Its my weak point about study.
|
Basically you want someone to show you how to use a computer?? Those tutorial are step by step basically. You can use any editor you want and save the .py's wherever you want. We can't sit here in a forum and teach you how to program in Python.
|
|
|
01-20-2011, 02:43 AM
|
#11
|
Member
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
|
|
|
1 members found this post helpful.
|
01-20-2011, 10:18 AM
|
#12
|
LQ Guru
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,372
|
Quote:
Originally Posted by Piyush M
See I know all about the available data on net about python but dear my question is I cant understand things unless one come to me and tell or teach me things in personal way.
|
The obvious response to this is "then take a class."
I understand that that's not always a realistic option, so here's the next best thing:
http://ocw.mit.edu/courses/electrica...ing-fall-2008/
Watch the full set of video lectures, read the online textbooks and the lecture notes.
|
|
|
01-20-2011, 10:27 AM
|
#13
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Quote:
Originally Posted by xeleema
And here I thought it was great where it was. 
|
Well ... it's about python, not Linux. But otherwise I'd agree.
Cheers,
Tink
|
|
|
01-20-2011, 10:35 AM
|
#14
|
Senior Member
Registered: Dec 2008
Posts: 4,732
|
Quote:
Originally Posted by Piyush M
A simple and step by step guidance for writing code in which editor?where to save it?how to run it in GNOME terminal?how to do everything in simple manner.
|
No offense intended, but Piyush that's not the way forums work. Since you are newbie so Xeleema did bother to write those huge posts, but you can't expect that kind of help every time, here.
To be honest, people here are expected to:
1. Search Google before creating threads and mention in their first post what all they have tried (so that people don't offer the same solutions again and waste their time).
2. Read the links posted by the helpers and report back in case of problems.
3. Thank the helpers for their efforts. (which you already have been doing )
Do read this interesting article: http://www.catb.org/~esr/faqs/smart-questions.html
|
|
|
All times are GMT -5. The time now is 12:55 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|