title: Python: Pass array as separate arguments to function
body: <p>I have a function that I can not edit, this function expects 3 arguments</p>
  <pre><code>def rgb_color(r,g,b):
      print(r,g,b)
  </code></pre>
  <p>now I have these values as an array, I can change this var if needed to a list or something</p>
  <pre><code>black = [0, 0, 0]
  </code></pre>
  <p>Is there a way to pass the variable <em>black</em> to the function without using</p>
  <pre><code>black[0], black[1], black[2]
  </code></pre>
  <p>something like</p>
  <pre><code>call_user_function(rgb_color, black) 
  </code></pre>