official python documentation code example
Example 1: python documentation
dont read documentation until you understand the core concepts of Python!
Example 2: latest version of python
# For macs...
# Apparently you don't want to upgrade 2.* just install 3.*
% brew install python3