Re: Multi dimensional lists python
Usually, I don’t. Multi dimensional lists become very annoying to access really fast. If I do want to have a multi dimensional object, I would just use a dictionary. So in Cae’s example, if I want to store teams, I would do team name as the key, and members as a list relating to that key.
I have used a multi dimensional list before, and they caused endless amounts of headaches in the form of syntax errors with so many brackets and all.
I can’t speak on this because I do not totally understand it, but I believe if you do use multi dimensional lists they take up less memory. that has never been of a concern for me, but that’s because I have been building small projects here and there.
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector