title: Find the first number is tuple in python
body: <p>I have this code and this a,b and c values and after appeidnig in tuple i need to find the first number of 1 and last value from 7 ,how i can get this two first and last value from the tuple.</p>
  <pre><code>a=1,5
  b=4,7
  c=['a']
  r=[]
  for i in  (a,b,c):
    if i not in r:
       r.append(i)
  </code></pre>
  <p>i tried this way but it is just giving me</p>
  <pre><code>r[0]=(1, 5) and r[1]=(4,7)
  </code></pre>
  <p>i am expecting to get 1, and 7 value, how i can get the first value from a and last value of b</p>