#!/usr/bin/env python3 list = [] for i in xrange(3): list.append([]) for j in xrange(3): list[i].append(i+j) print(list) print(list[0][0]) print(list[1][2])