I have a list that is however many cells a user inputs. So say the user inputs 4, the list will consist of 4 0's: list_1 = [0,0,0,0].
Now the user is also asked which of these zeros he wants to replace with a 1 (must pick 2) and enters: 1 2. I want list_1[1] and list_1[2] to change from 0 to 1.
I have tried a few different things, but none are giving me the expected out put which should be a list [0,1,1,0] (if i was using the above code)
Any help is appreciated.