Basics

Main data structures

my_list = [1,2,3]
my_tuple = (1,2,3) # immutable
my_dictinary = {1: "Monday", 2: "Tuesday"}

include double arithmetics

from __future__ import division

Function

def double_value(x): return 2 * x

	lambda x: 2 * x

Indexing

x[-2] # second last element

OS info

import os
# get current working dir
print("Current working dir : %s" % os.getcwd())