Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
By using * 4 in the end you are making four lists having same reference. Hence change in one causes change in other 4 lists. Relevant FAQ : https://docs.python.org/3/faq/programming.html#how-do-i-create-a-multidimensional-list ---------- nosy: +xtreak _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43581> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com