title: How would I convert user input into function arguments?
body: <p>I'm trying to make a custom command line to control a robotic arm.
  So I want to be able to run the program and type in servoMove(arg1,arg2) and have arg1 and arg2 get transferred into the function servoMove.</p>
  
  <pre><code>servoPos = [0,1,2,3,4]
  
  def servoMove(servo,angle):
      servoPos[servo] = angle
      print(servoPos[servo])
  
  def commands(cmd):
      if cmd == 'servoMove('+arg1+','+arg2+')':
          servoMove(arg1,arg2)
      else:
          print("[Error] - Unknown Command")
  
  commands(input(""))
  </code></pre>
  
  <p>Clearly, the code below doesn't work for this.</p>
  
  <pre><code>    if cmd == 'servoMove('+arg1+','+arg2+')':
          servoMove(arg1,arg2)
  </code></pre>
  
  <p>Does anybody know how I can do this?</p>