background preloader

Programming

Facebook Twitter

Tutorial - Learn Python in 10 minutes. NOTE: If you would like some Python development done, my company, Stochastic Technologies, is available for consulting. This tutorial is available as a short ebook. The e-book features extra content from follow-up posts on various Python best practices, all in a convenient, self-contained format.

All future updates are free for people who purchase it. Preliminary fluff So, you want to learn the Python programming language but can't find a concise and yet full-featured tutorial. Properties Python is strongly typed (i.e. types are enforced), dynamically, implicitly typed (i.e. you don't have to declare variables), case sensitive (i.e. var and VAR are two different variables) and object-oriented (i.e. everything is an object).

Getting help Help in Python is always available right in the interpreter. >>> help(5)Help on int object:(etc etc) >>> dir(5)['__abs__', '__add__', ...] >>> abs. Syntax Python has no mandatory statement termination characters and blocks are specified by indentation. Strings. Scripting Languages: PHP, Perl, Python, Ruby, Smalltalk - Hyperpolyglot. A side-by-side reference sheet sheet one: version | grammar and execution | variables and expressions | arithmetic and logic | strings | regexes | dates and time | arrays | dictionaries | functions | execution control | exceptions | threads sheet two: streams | asynchronous events | files | file formats | directories | processes and environment | option parsing | libraries and namespaces | objects | inheritance and polymorphism | reflection | net and web | gui | databases | unit tests | logging | debugging sheet two: streams | asynchronous events | files | directories | processes and environment | option parsing | libraries and namespaces | objects | inheritance and polymorphism | reflection | net and web | gui | databases | unit tests | logging | debugging version used The versions used for testing code in the reference sheet. show version How to get the version. php: The function phpversion() will return the version number as a string. python: import platform platform.python_version() ruby: <?

Pad. Programming, Motherfucker. Data Structures and Algorithms with Object-Oriented Design Patterns in C++ Data Structures | Berkeley Video Course. Since 2008, Academic Earth has worked diligently to compile an ever-growing collection of online college courses, made available free of charge, from some of the most respected universities. We proudly build on the precedent set forth by MIT OpenCourseware, believing that everyone deserves access to a world-class education.

To facilitate this goal, we have curated links to over 750 online courses and 8,500 individual online lectures, giving students of all ages unparalleled access to college courses they may otherwise never experience. Whether supplementing existing coursework, or learning for the sake of learning, anyone with an internet connection has the freedom to learn at their own pace from world-renowned experts, without the burden of rising tuition costs. To access this collection of free online college courses, simply select your area of interest from the menu below. From Art and Design to Social Science, Academic Earth is sure to have the course you’re looking for.