Showing posts with label examples. Show all posts
Showing posts with label examples. Show all posts

December 25, 2007

Learning Python The Easy Way

Hello everyone! You may probably have heard about Python for the Nokia S60 platform. One of the most exciting features of this programming language is that it provides access to several unique smartphone functions, including the camera, calendar, audio as well as telephony amongst other things. This is partly why it has become so popular over time.

Some days ago I stumbled upon an excellent book related to Python for S60 devices. It's called "Mobile Python" and is written by Jürgen Scheible and Ville Tuulos.

Furthermore, for those of you interested, there's an amazing repository of Python code available online for free right over here. This is something that you must check out. There are over 100 examples to try out...from making a simple app that can record audio to making a message reader to taking pictures with your phone camera. The possibilities are endless!

One of the best ways of learning the basics of a language is by going through code examples step by step. That is where Python is so friendly and non-fussy. In case you falter, you'll eventually learn how to correct the mistake just by studying the code. Anyway, if you've come this far, just try this:
  • Grab a text editor (notepad will do just fine) and paste the code (try any of the examples above)
  • Rename the file to *.py and send it to your phone's memory card (e:\Python)
  • Install the Python for S60 application (PythonForS60_1_4_0_3rdEd.sis) on your phone
  • Install the script shell (PythonScriptShell_1_4_0_3rdEd.sis)
  • Next, run Python from your phone and click "Run Script" to execute the code that you've just sent
P.S If you don't already have Python installed, click here to get it for your S60 3rd Edition phone.

I hope you see how easy it is to make your own programs using Python. The code examples given above are enough to get one started. Anyway, happy python-ing!

Continue reading this story »