LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-26-2011, 12:46 PM   #1
huntaz556
LQ Newbie
 
Registered: Oct 2011
Posts: 22

Rep: Reputation: Disabled
Python


What kind of diffrent programs can python make? i was wondering because i like the simplicity of python code and can it make programs that say ? c++ or c# could make i would rather keep learning python instead of learning any form of C i wouldnt be making games just programs im not sure what yet ..
 
Old 10-26-2011, 01:04 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
You can make any kind of programs with Python. Even games are possible.
 
Old 10-26-2011, 01:12 PM   #3
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
Languages that are classified as "Turing Complete" (including Python) can all accomplish the same functions. The difference will be the ease of use for a given application, resource usage, and performance.

Because the personal computers we use today have so much resource and such high performance, the selection of a language usually comes down to ease of use. Python is very easy to learn, and has been broadly extended with many add-ons that make specific tasks simpler or provide higher performance. As a result, as TobiSGD indicated, Python is suitable for almost any type of program.
 
Old 10-26-2011, 01:27 PM   #4
huntaz556
LQ Newbie
 
Registered: Oct 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by macemoneta View Post
Languages that are classified as "Turing Complete" (including Python) can all accomplish the same functions. The difference will be the ease of use for a given application, resource usage, and performance.

Because the personal computers we use today have so much resource and such high performance, the selection of a language usually comes down to ease of use. Python is very easy to learn, and has been broadly extended with many add-ons that make specific tasks simpler or provide higher performance. As a result, as TobiSGD indicated, Python is suitable for almost any type of program.
Okay good i like python and want to keep learning it. and another thing with python i know you can package a python program as a .deb for ubuntu what about as a .exe for windows ?
 
Old 10-26-2011, 01:31 PM   #5
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 328Reputation: 328Reputation: 328Reputation: 328
Yes, you can do that.
 
Old 10-26-2011, 01:33 PM   #6
huntaz556
LQ Newbie
 
Registered: Oct 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Awesome thank you guys so much i can continue on with python ! haha. but the best way for me to learn is for me to have a project to do otherwise i get distracted and dont feel like im doing anything . so can you give me some ideas on a project to do ? thanks !
 
Old 10-26-2011, 02:27 PM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Have a look at your current Linux installation and think about a small program that would make the OS more usable for you. Then try to write it. Or try to write a little game with PyGame.
 
Old 10-26-2011, 02:30 PM   #8
huntaz556
LQ Newbie
 
Registered: Oct 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
Have a look at your current Linux installation and think about a small program that would make the OS more usable for you. Then try to write it. Or try to write a little game with PyGame.
hm.. i made a bash script that formatted my flashdrive and then made a backup of a selected directory to that flashdrive can you do that with python?
 
Old 10-26-2011, 03:11 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Of course you can. I think it will end in just calling commands like you would do with a Bash script, but it is nonetheless possible.
 
Old 10-26-2011, 03:13 PM   #10
huntaz556
LQ Newbie
 
Registered: Oct 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TobiSGD View Post
Of course you can. I think it will end in just calling commands like you would do with a Bash script, but it is nonetheless possible.
haha alright any other ideas?

im running ubuntu linux by the way if that changed anything for some reason lol
 
Old 10-26-2011, 03:42 PM   #11
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714Reputation: 714
Python can do anything that can be done with any other language, except for really low-level stuff (which is only necessary if you're writing an operating system ar a device driver).

And since it's interpreted (and not run directly on the CPU), it's slower than languages like C. But this is not an issue for most applications.
 
  


Reply

Tags
programming, python


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Python 2.6 dependencies error installing python-sqlite2-2.5.5-1.1.i586.rpm jmp007 Linux - Newbie 1 02-11-2011 12:05 PM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 09:30 PM
LXer: Review: Programming in Python 3: A Complete Introduction to the Python Language LXer Syndicated Linux News 0 01-26-2009 05:50 AM
python update - Unable to load GTK2 Python bindings: No module named gtk itpedersen Linux - Software 2 10-03-2008 04:44 AM
LXer: Move to python 2.4 / Changing the packaging style for python packages LXer Syndicated Linux News 0 06-13-2006 08:54 PM


All times are GMT -5. The time now is 12:08 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration