from here The best way to learn Python is by practicing examples. The page contains examples on basic concepts of Python. You are advised to take the references from these examples and try them on your own. All the programs on this page are tested and should work on all platforms.