Python
Python
Yesterday is was participate in the "Third Blogger's Convention" in Microsoft Israel and I realized that I can write about anything beside cakes, cats etc… :-)
So I want to talk about a Script Language that I love.
Maybe you heard about this language or maybe not, but there is a very powerful scripts language called Python.
So What is Python?
Python Programming Language is a dynamic object-oriented programming language that can be used for many kinds of software development.
It offers strong support for integration with other languages and tools, comes with extensive standard libraries, and can be learned in a few days.
Many Python programmers report substantial productivity gains and feel the language encourages the development of higher quality, more maintainable code.
Demonstration:
I made the following script for a coworker that want to download 1000 pictures form a web site, you can go and download all those pictures manually one by one
and as you know this may take some time or write a script in Python.
So here is the Python Script in 3 Lines toke me approximately 1.5 minutes to write:
import urllib
[urllib.urlretrieve(x,"d:\\shai\\" + os.path.basename(x)) for x in ['http://www.shvoong.co.il/shvoong/2022/%03d.jpg ' % x for x in xrange(0,1000)]]
Hope you've enjoy this post and I'll bring more examples for Python soon.