Python Programming Python Programming From Wikibooks, open books for an open world Jump to: navigation, search This book describes Python, an open-source general-purpose interpreted programming language available for a broad range of operating systems. Contents Intro Overview Getting Python Setting it up Interactive mode Self Help Basics Creating Python programs Variables and Strings Basic syntax Sequences (Strings, Lists, Tuples, Dictionaries, Sets) Data types Numbers Strings Lists Tuples Dictionaries Sets Basic Math -- redundant to "Operators" Operators Control Flow Decision Control Conditional Statements Loops Functions Scoping Input and output Files Text Modules Classes Exceptions Errors Source Documentation and Comments Idioms Advanced Decorators Context Managers Reflection Metaclasses Namespace Tips and Tricks Modules Standard library modules Standard Library Regular Expression External commands XML Tools Email Threading Sockets GUI Programming Tkinter CGI interface WSGI web programming Extracting info from web pages Math
BeginnersGuide/Programmers Please Note Because this is a Wiki page, users can edit it. You are therefore free to add details of material that other Python users will find useful. It is not an advertising page, and is here to serve the whole Python community. Users who continually edit pages to give their own materials (particularly commercial materials) prominence, or spam the listing with multiple entries which point to resources with only slightly altered material, may therefore find their accounts are disabled. Python for Programmers The tutorials on this page are aimed at people who have previous experience with other programming languages (C, Perl, Lisp, Visual Basic, etc.). Books, Websites, Tutorials (non-interactive) Reviews Learn Python - Best Python Tutorials and Courses Python tutorials & courses recommended by the programming community. Resources Learn Python Step by Step - Start learning python from the basics to pro level and attain proficiency. Interactive Tools and Lessons Python Video Tutorials
Electrical Engineering and Computer Science | 6.00 Introduction to Computer Science and Programming, Fall 2008 | Video Lectures The most learner-friendly resources about algorithms Learning How to Code Has Never Been Easier Programming isn’t just a niche specialization anymore, rather a necessity for tech-professionals regardless of the industry in which they work. Thankfully for them, it couldn’t be any easier.As such, there’s a big push lately to make coding literacy more widespread among the general populace. Even Mayor Bloomberg is getting in on the act, pledging to learn basic coding in 2012 as his New Year’s resolution. Codecademy Probably the most popular website at the moment for those looking to learn coding is Codecademy, a platform that emphasizes doing while learning. Treehouse Though it doesn’t have the name recognition of Codecademy just yet, Team Tree House is nevertheless a powerful way to learn coding. Code Year Rounding out the pack is Code Year, which is actually offered by the same folks behind Codecademy. Final Thoughts What are some of your favorite sites to learn coding from?
The Python Tutorial Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Python’s elegant syntax and dynamic typing, together with its interpreted nature, make it an ideal language for scripting and rapid application development in many areas on most platforms. The Python interpreter and the extensive standard library are freely available in source or binary form for all major platforms from the Python Web site, and may be freely distributed. The Python interpreter is easily extended with new functions and data types implemented in C or C++ (or other languages callable from C). This tutorial introduces the reader informally to the basic concepts and features of the Python language and system. For a description of standard objects and modules, see The Python Standard Library. The Glossary is also worth going through.
Python for Fun This collection is a presentation of several small Python programs. They are aimed at intermediate programmers; people who have studied Python and are fairly comfortable with basic recursion and object oriented techniques. Each program is very short, never more than a couple of pages and accompanied with a write-up. I have found Python to be an excellent language to express algorithms clearly. Some of the ideas here originated in other programs in other languages. But in most cases I developed code from scratch from just an outline of an idea. From many years of programming these are some of my favorite programs. Many thanks to Paul Carduner and Jeff Elkner for their work on this page, especially for Paul's graphic of Psyltherin (apologies to Harry Potter) and to the teams behind reStructured text and Sphinx to which the web pages in this collection have been adapted. Chris Meyers
Electrical Engineering and Computer Science | 6.00 Introduction to Computer Science and Programming, Fall 2008 | Video Lectures | 1: Introduction and Goals; Data Types, Operators, and Variables