Wednesday, August 15, 2012

Raspberry PI – Learning Python



As far as programming, try Python, it is probably the easiest to learn modern language -


http://en.wikipedia.org/wiki/Python_(programming_language)

It is the only language I know of (other than BASIC which I think is available on the rPI as well) where the main design criteria was ease of use. If you do learn it, IMHO you should start with version 3.


The "default" programming language is Python. The designer did some major cleanup after version 2, and changed a few things that make it not 100% forward compatible from 2-3. Here is a "cheat sheet" with the differences (the print statement is the one that impacts the beginning programmer the most, IMHO):

If you are learning Python, use Python 3 (IDLE3), not 2.X (but a lot of old code is still 2.X)

To learn Python:

http://www.swaroopch.org/notes/Python A Byte of Python - BEST place to start IMHO (use version 3 if starting)

http://docs.python.org/release/3.0.1/tutorial/ More detailed Python Tutorial

http://wiki.python.org/moin/Python2orPython3 Good description of why the differences in 3.X


http://www.python.org/ Official Website, tons of info

Also interesting to note that as well as Python 2 and 3 (IDLE IDEs) there are two "kid" oriented languages by default, scratch and squeak:






Eric Pierce VA3EP - See the Disclaimer in the Introduction

© Eric Pierce and "VA3EP Amateur Radio And Other Geek Pursuits", 1952-2099. Unauthorized use and/or duplication of this material without express and written permission from this blog’s author and/or owner is strictly prohibited. Excerpts and links may be used, provided that full and clear credit is given to Eric Pierce and "VA3EP Amateur Radio And Other Geek Pursuits", with appropriate and specific direction to the original content.


No comments:

Post a Comment