title: How to store (x,y) Coordinates in python and be able to update them
body: <p>I have an assignment where i need to be able to take a digital signal input of x and y axis and be able to manipulate it by shifting or scaling or inverting the signal (i.e do mathematical operations on the x-axis)</p>
  
  <p>So what I've done is take an x and y input and store them as a tuple in a list (a list of tuples) but tuples are unchangeable so I'm looking for a way to deal with this or an alternative solution </p>
  
  <p>edit:my bad this code is after i tried using a list of lists but i still don't know how to change the values of the nested list</p>
  
  <pre class="lang-py prettyprint-override"><code>coordinates=[]
  x,y=input().split(',')
  x=int(x)
  y=int(y)
  coordinates.append([x,y])
  
  
  </code></pre>