Python Programming - Why Python?
Ranked #3,148 in Computers & Electronics, #62,495 overall
So you want to start programming and aren't sure what programming language to learn?
So what's up with Python? Well if you have no inkling of how to program, read on.
So, what's so great about python?
Python is a great programming language to start with. The context is very easy learn, and doesn't have as many rules as other programming languages. Here are a couple examples:
In C++, the popular Hello, world! program is :
#include stdout
int main()
{
std::cout << "Hello, world!\n";
}
with the output being: Hello, world!
The same program in Python would be:
print "Hello, world!"
Quite a difference, eh? The code is a lot cleaner than some of the other languages out there. Once you've got it down, it seems to be much easier to take a look at the code and know whats going on.
Python is also a very powerful language, able to do most anything that C++ or Java can do, and in some cases more. Such as extending classes (this brought on Jython, a python-integration into Java that allows programmers much more flexibility). Many programmer's will program in C++, but yet they will still use python for binding scripts and such.
Another great thing about Python is that you don't have to worry about assembly and compiling. You can run your programs right away and immediately track down any bugs or glitches.
If you want to start making games. Python has extended libraries, such as pygame or pyglet, available. There are 3d game engines such as Blender that you can program python scripts into to make the game engine even more flexible.
The best thing about learning python is that it will get you to start solving problems and thinking like a programmer. And once you are thinking like a programmer it is a fairly easy transition to almost any programming language.
So go ahead and give it a try. You can start learning at Learning Python (For The Complete N00B).
It is a working progress and after I completely finish the python tutorial, i am going to move on to pygame tutorials. If you need any help, feel free to email me.
In C++, the popular Hello, world! program is :
#include stdout
int main()
{
std::cout << "Hello, world!\n";
}
with the output being: Hello, world!
The same program in Python would be:
print "Hello, world!"
Quite a difference, eh? The code is a lot cleaner than some of the other languages out there. Once you've got it down, it seems to be much easier to take a look at the code and know whats going on.
Python is also a very powerful language, able to do most anything that C++ or Java can do, and in some cases more. Such as extending classes (this brought on Jython, a python-integration into Java that allows programmers much more flexibility). Many programmer's will program in C++, but yet they will still use python for binding scripts and such.
Another great thing about Python is that you don't have to worry about assembly and compiling. You can run your programs right away and immediately track down any bugs or glitches.
If you want to start making games. Python has extended libraries, such as pygame or pyglet, available. There are 3d game engines such as Blender that you can program python scripts into to make the game engine even more flexible.
The best thing about learning python is that it will get you to start solving problems and thinking like a programmer. And once you are thinking like a programmer it is a fairly easy transition to almost any programming language.
So go ahead and give it a try. You can start learning at Learning Python (For The Complete N00B).
It is a working progress and after I completely finish the python tutorial, i am going to move on to pygame tutorials. If you need any help, feel free to email me.
Good Books for Learning Python
What Programming Language Do YOU use?
Loading poll. Please Wait...
Check out these vids to get an idea of what Python can accomplish!
automatically generated by YouTube
Reader Feedback
submit
-
Reply
-
dannystaple
Jul 30, 2011 @ 5:38 pm | delete
- I've been using python on and off for years now. I mostly use emacs as my python IDE, and I've used it with custom hardware, for testing, for tooling up and so on. I still use C/C++ for the main body of code (there's nothing like going native), but python does allow for rapidly creating automation and productivity gadgets. I also love that many things have python as a scripting language - inkscape, apple automator, a bunch of others. I kind of wish Eagle would adopt it instead of their own slightly crippled language.
-
-
Reply
-
manlalakbay
Jul 30, 2011 @ 3:49 pm | delete
- Wow! A great start! Keep it up. :)
-
-
Reply
-
ProgrammingThings
Jan 9, 2011 @ 4:54 pm | delete
- Do you have a favorite Python IDE? Which one do you use?
-
-
Reply
-
javrsmith Dec 11, 2010 @ 9:30 am | delete
- I have written one application with Python. Interesting.
-
-
Reply
-
jareddavison2009
Apr 6, 2009 @ 4:20 pm | delete
- Great lens Derrick. You just need to fix the angle brackets in #include <iostream> by changing < to < and >
-
- Load More
Amazon
by dwolters
dwolters
Hey. My name is Derrick and I have been programming using several different languages. Lately I have been experimenting with different libraries and game... more »
- 1 featured lens
- Winner of 3 trophies!
- Top lens » Python Programming - Why Python?
Feeling creative?
Create a Lens!
Explore related pages
- Python is Amazing Python is Amazing
- Programming Beginner Programming Beginner
- Interactive Notebook Interactive Notebook
- File Folder Math File Folder Math
- ★ FASHION DRAWING Tutorials | How to Sketch Clothed Figures ★ ★ FASHION DRAWING Tutorials | How to Sketch Clothed Figures ★
- Weather Related Science Projects for Kids (and their parents) Weather Related Science Projects for Kids (and their parents)