John Cena <crazygu...@gmail.com> added the comment:
You are actually creating 4 references to the same list(See the ending *4). This is how python behaves. See the below link as well https://stackoverflow.com/questions/240178/list-of-lists-changes-reflected-across-sublists-unexpectedly ---------- nosy: +crazyguyx4 _______________________________________ 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