"Alan Gauld" <[EMAIL PROTECTED]> wrote > If you just want an empty array as per Java you can use a > list comprehension: > > out = [[0] * 4 for n in range(4)] >
This isn't really empty of course, its full of zeros, the nearest to a truly empty array you can do in Python would be to use None for the value. Sory for any confusion, Alan G. _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
