initializing nested array in python code example Example: python initialize a 2d array bar = [SOME EXPRESSION for item in some_iterable]