Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: python nested list assignment weird behavior
Post: python nested list assignment weird behavior

mat was initialized like this: mat = [[0]*26]*5 The problem is that after an inner loop iteration all the rows in mat get changed the same but i clearly stated that only the ith row should change. the...
eyalk1 General Coding Help 2 4,461 Jan-16-2018, 07:06 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020