diff --git a/index.html b/index.html
new file mode 100644
index 0000000..81e491d
--- /dev/null
+++ b/index.html
@@ -0,0 +1,252 @@
+
+
+
+
+
+
+
+
+
+ Learn You Some Python
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Learn You Some Python!Python for the Competent Programmer
+ Mike Harris
+ Geoffrey French
+
+
+
+
+
+ Syntax Stuff
+
+ - No
;
or {}
+ - Indent aware
+ - Comments are octothorpes (
#
to you and me)
+ variable_names_are_underscored
+ so_are_method_names
+ ClassNamesAreCamelCased
+ - It's
def
not function
+ self
is explicit
+
+
+
+
+ Syntax Stuff
+
+ - No private access - "We're all consenting adults"
+ - We have faux private access with
_
and __
+ - We have equality and identity -
==
and is
+ - We have logic in plain English -
and
, not
+ if elif else
+ try except else finally
+ None
+ - Inner Classes
+
+
+
+
+
+
+
+ Lists
+
+ - Packing / unpacking
+ list[0]
+ list[1:3]
+ list[1:10:2]
+ list[-1]
+ for item in list
+ ", ".join(list)
+ a in b
+ - list comprehensions
+
+
+
+
+ Tuples
+
+ - Immutable
+ - But they're more than that...
+
+
+ Lists have order, but tuples have structure.
+
+
+
+
+ Tuples Are Not Just Immutable Lists
+
+ [('Mike', 'Harris'),
+ ('Geoff', 'French')]
+
+
+
+
+
+
+ Iterators & Generators
+
+
+
+
+
+ Strings
+
+ - Interpolation / formatting
+ "." * 10
+
+
+
+
+
+
+
+
+
+
+
+
+ Some Handy Builtins
+
+ - sorted
+ - map
+ - reduce
+ - filter
+ - lambda
+ - any, all
+ - enumerate
+ - range, xrange
+ - open
+
+
+
+
+
+
+ Context Managers
+ with open(foo) as f
+
+
+
+
+
+
+
+ Multiple Inheritance
+
+
+
+
+
+
+ Some Handy 3rd Party Libraries
+
+ - Numpy
+ - Scipy
+ - Matplotlib
+ - lxml
+ - PyQuery
+
+
+
+
+
+
+ PyPi (Don't confuse with PyPy)
+ pip
+
+
+
+
+
+
+
+ Maths Gotchas
+
+ **
not ^
+ 10 / 4 = 2
+ 10 / 4.0 = 2.5
+ 10 // 4.0 = 2.0
+
+
+
+#
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+