Actually python is the only language which is having single line of code for hello world :).
Even in android Python does the magical programing in few lines.
An example via Matt Cutts -- "here's a barcode scanner written in six lines of Python code:
import android
droid = android.Android()
code = droid.scanBarcode()
isbn = int(code['result']['SCAN_RESULT'])
url = "http://books.google.com?q=%d" % isbn
droid.startActivity('android.intent.action.VIEW', url)
No comments:
Post a Comment