How to change one element of a list

In the plot that I’m making, I’ve got a large list of points. My goal is to make each point clickable so that they each change a specific element of a list. So, if the list is labeled “n” then clicking the fourth point should make n[4] → n[4] + 1. Is there a way of doing that? I’ve tried using the notation I just showed, something like n[index] → n[index] + 1, but desmos tells me that n[index] is a number and not a variable. I’d appreciate any help.

P.S. I’m new to desmos classroom so please let me know if there is anything wrong with the way I formatted this question.

You can’t replace an element like that, but you can basically create a new list with all elements the same except for the new one. Here is an example:

1 Like

That works perfectly! Thank you so much!

1 Like