Python is a scripting language, so there is no need to compile your program and there is no "build" process. An excellent resource for experienced developers to learn Python is the free online book: Dive Into Python
We won't have time in this course to give you proper instruction in the Python programming language. For those not familiar with Python, you should be able to pick up most of the concepts you need as we walk through the example programs presented in this course. But there are a few Python tidbits we'll cover here, before diving into real examples:
If you are new to Python, you may enjoy using the built-in Python IDE, IDLE, to execute Python code in a command console:
There are a number of surprising attributes to the Python programming language:
- One of the strangest concepts for new Python developers is that block structure is controlled by indentation level!
- Python uses exception handling extensively - (exception are "raise"-ed, not "throw"n).
- Python uses sequence (list and tuple) and map (dict) data types extensively.
- Loops in Python are not the typical for (i = 0; i < max; i++) variety. Instead you loop over the members of a sequence:
- Python programmers often use list comprehensions which are one-liner expressions for lists.
- If you want your Python programs to be read/used by other Python programmers, it's strongly recommended that you follow the Standard Python Coding Style. In particular, use names like these:
- function_names, method_names
- ClassNames, ExceptionNames
- __magic_python_names__ (never invent your own)
- CONSTANTS, CONSTANT_NAMES