how to declare a 2d array without declaring] size in python code example Example: python initialize a 2d array bar = [SOME EXPRESSION for item in some_iterable]