title: Reorganize list/tuple structure
body: <p>In an exercise I am asked to reorganzie a tuple. Given the tuple: <code>temp = ( (&quot;mandag&quot;, 16.0), (&quot;tirsdag&quot;, 13.0), (&quot;onsdag&quot;, 14.0), (&quot;torsdag&quot;, 13.0), (&quot;fredag&quot;, 15.0), (&quot;lørdag&quot;, 13.0), )</code></p>
  <p>I am supposed to write a function called <code>data_reorganize</code> which outputs the following tuple when printed:</p>
  <pre><code>(('mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'),(16.0, 13.0, 14.0, 13.0, 15.0, 13.0))
  </code></pre>
  <p>I have managed this, but my code seems too long and chunky:</p>
  <pre><code>def data_reorganize(a):
      x = []
      y = []
      for i in a:
          x.append(i[1])
      x = tuple(x)
      for i in a:
          y.append(i[0])
      y = tuple(y)
      return y,x
  </code></pre>