title: Issue with variables in insert statement in python 3
body: <p>This is regarding hackerrank problem <a href="https://www.hackerrank.com/challenges/python-lists/problem" rel="nofollow noreferrer">https://www.hackerrank.com/challenges/python-lists/problem</a> .Below is my implemented code. I am facing issue with the insert statement as it is asking for at least two variables. I tried converting user input to list and then inputting into the insert statement. It's throwing an error. Please help!</p>
  
  <pre><code>if __name__ == '__main__':
      N = int(input())
      l=[]
      for _ in range(N):
          line = input().split()
          cmd = line[0]
          args= line[1:]
          """if cmd!= "print":
              cmd += "(" + ",".join(args)+")"""
          x = ",".join(map(str,args))
          if cmd == "insert":
              l.insert(x)
          elif cmd == "remove":
              l.remove(x)
          elif cmd == "append":
              l.append(x)
          elif cmd == "sort":
              l.sorted(x)
          elif cmd == "pop":
              l.pop(x)
          elif cmd =="reverse":
              l.reverse(x)
          else:
              print(l)
  </code></pre>