Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Reply
 
LinkBack Thread Tools Display Modes
Old 11-04-2011, 12:47 AM   #1 (permalink)
Alpha Geek
 
Join Date: Jan 2007
Location: In your hearts
Posts: 828
Default Discussions Related to Python Here


There are threads
Java Queries Here..

Post ur C/C++ Programs Here

C/C++ Beginner's Guide and Post Basic Questions Here

But no one like these related to Python, so I thought of creating a similar thread like those above.

So post your Python related queries, your Python Programs and here you will find some basic knowledge about Python also.

Quote:
Originally Posted by Wikipedia
Python (Python Programming Language – Official Website) is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability.Python aims to combine "remarkable power with very clear syntax", and its standard library is large and comprehensive. Its use of indentation for block delimiters is unique among popular programming languages. It was designed by Guido van Rossum.

Python supports multiple programming paradigms, primarily but not limited to object-oriented, imperative and, to a lesser extent, functional programming styles. It features a fully dynamic type system and automatic memory management, similar to that of Scheme, Ruby, Perl, and Tcl. Like other dynamic languages, Python is often used as a scripting language, but is also used in a wide range of non-scripting contexts. Python is a cross-platform language available for Windows, Linux and Mac. In Linux, Python is primarily used for creating GUI programs and as scripting language. Fedora's installer Anaconda, its package installer yum, Package Kit, gedit and many other softwares have been written in Python.
(All this through wikipedia(Python (programming language) - Wikipedia, the free encyclopedia).
You can download Python from its official website, current stable version is 3.2.

IDE available for Python are IDLE, Eric, Eclipse and many others.

Python tutorials
The best one is Python's own tutorial.
docs.python.org

Others are
Python Tutorial
The Python tutorial

Just google and you will find many others.

Here's how to run a Hello World program in Python.

First Python must be installed in the system. In Linux (most distros) and Mac OS X, it's preinstalled while in Windows, it's recommended to use Activestate's ActivePython. Download it here.

First open your favourite text editor (text editor like Notepad, gedit etc. not MS Word etc.). Then paste the following code.

Code:
print "Hello World"
Save it as .py file.

In Windows, open command prompt go to the path where Python is installed. then type
Code:
python <your .py file path>
In Linux, just open terminal and enter

Code:
python <your .py file path>
You will get output as

Code:
Hello world
For 2010, Python was TOIBE's Programming Language of the Year.

Good Luck!!

Last edited by abhijangda; 11-04-2011 at 01:42 PM.
abhijangda is online now   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 11-04-2011, 08:47 AM   #2 (permalink)
BIOS Terminator
 
nims11's Avatar
 
Join Date: Apr 2008
Location: Ranchi
Posts: 816
Default Re: Discussions Related To Python Here..

i want to learn python after few months in addition to my current knowledge of C,C++. will it be useful?
nims11 is online now   Reply With Quote
Old 11-04-2011, 08:54 AM   #3 (permalink)
Sami Hyypiä, LFC legend
 
Liverpool_fan's Avatar
 
Join Date: Jun 2007
Location: Нью-Дели
Posts: 2,138
Default Re: Discussions Related To Python Here..

Quote:
Originally Posted by nims11 View Post
i want to learn python after few months in addition to my current knowledge of C,C++. will it be useful?
A BIG Yes.
This eBook will get you started - Python - Notes

Dive into Python is another (not exactly for beginners) but excellent guide
http://diveintopython.org/
http://diveintopython3.org/

@abhijangda Can you exand the OP, with a bit of guide to how to run Python code in Windows and Linux and a basic Hello World Program demonstrating Python code? That would make this thread more useful.
__________________
Experience true education in Computer Science - http://www.udacity.com | http://www.coursera.org

Spoiler:
Read before asking / messaging any moderator for any query: FAQ + answers for new members

Read all the sticky threads before asking any type of query. Most basic questions are answered in those.
Don't use forum for chatting. Visit http://webchat.freenode.net/?channels=krow, enter nick and connect.
Liverpool_fan is offline   Reply With Quote
Old 11-04-2011, 09:33 AM   #4 (permalink)
Intel OCer
 
amitash's Avatar
 
Join Date: Feb 2008
Location: Bangalore
Posts: 1,127
Default Re: Discussions Related to Python Here

IMO best place to learn python:

Software Carpentry » Python

Watch the videos and you'll be up and running in no time..

Also I recommend using linux for python.. I use ubuntu.. Heres a guide i wrote to install and get it running with eclipse ide:

http://collegeclassroom.org/?page_id=19
__________________
My site: collegeclassroom.org
intel core i7-920||eVGA x58 sli||G-skill 6GB DDR3-1600| ZOTAC GTX480||Tagan BZ700||Antec 900||Logitech G15||Razer Death Adder and Megalodon
amitash is offline   Reply With Quote
Old 11-04-2011, 01:56 PM   #5 (permalink)
Alpha Geek
 
Join Date: Jan 2007
Location: In your hearts
Posts: 828
Default Re: Discussions Related To Python Here..

Quote:
Originally Posted by nims11 View Post
i want to learn python after few months in addition to my current knowledge of C,C++. will it be useful?
Yes, why not you can. But I will advice you to learn Python first and then C/C++.

Here is a program named Athena written in Python by me.
It is an IDE for C/C++/C#. Although it still lacks many features.
It is for Linux users only, however Windows users can also use it but compiling will not work.
It uses PyQt4 as widget toolkit.

You can download source code from
texteditor9.7.zip - File Shared from Box.net - Free Online File Storage

Linux binary file can be downloaded from
texteditorlinuxbinary.zip - File Shared from Box.net - Free Online File Storage

Report any bug to me.
abhijangda is online now   Reply With Quote
Old 11-04-2011, 01:57 PM   #6 (permalink)
God of Mistakes...
 
Garbage's Avatar
 
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
Default Re: Discussions Related to Python Here

I would recommend this book.
Learn Python The Hard Way: Learn Python The Hard Way

Though it says, learn by *hard* way, he actually means, by practicing. Nice book anyways.
__________________
Registered Linux User #468778
----------------------------------
http://twitter.com/_Garbage_
Garbage is offline   Reply With Quote
Old 11-04-2011, 02:41 PM   #7 (permalink)
Sami Hyypiä, LFC legend
 
Liverpool_fan's Avatar
 
Join Date: Jun 2007
Location: Нью-Дели
Posts: 2,138
Default Re: Discussions Related to Python Here

@OP: I took the liberty of some reorganizing and adding BBCode markup in your OP. I hope you don't mind.
BTW This thread seems to target Python 2.x, surely time for encouraging Python 3.x now? I think there should be some guidance into both branches, their differences, etc. in the OP. It would be appreciated if that's looked after, lemme check what I can do.
__________________
Experience true education in Computer Science - http://www.udacity.com | http://www.coursera.org

Spoiler:
Read before asking / messaging any moderator for any query: FAQ + answers for new members

Read all the sticky threads before asking any type of query. Most basic questions are answered in those.
Don't use forum for chatting. Visit http://webchat.freenode.net/?channels=krow, enter nick and connect.
Liverpool_fan is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:25 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2