title: Parse a zip object using ast.literal_eval() or eval()
body: <p>I have a zip object available in the Jinja template page, and when a user clicks some link I am sending that zip object as a request parameter. And then I try to parse the zip object using ast.literal_eval() but I am getting "Invalid syntax" error.</p>
  
  <p>I tried using eval() as literal_eval(). But both are giving me the same error. I searched for it but haven't found anything which describes how to parse a "" notation.</p>
  
  <p><strong>views.py</strong></p>
  
  <pre class="lang-py prettyprint-override"><code>data = request.GET
  movies,moviesindxs = zip(*literal_eval(data.get("movies")))
  </code></pre>
  
  <p><strong>jinja template</strong></p>
  
  <pre><code>{% for movie,movieindx in movies %}
     &lt;a href="{% url 'rate_movie'  %}?&amp;movies={{movies}}&amp;movie={{movie}}&amp;movieindx={{movieindx}}" method="GET"&gt;Random Text&lt;/a&gt;
  {% endfor %}
  
  </code></pre>
  
  <pre class="lang-sh prettyprint-override"><code>File "~/path/to/Django/app/views.py", line 198, in rate_movie
      movies, moviesindxs = zip(*literal_eval(data.get("movies")))
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ast.py", line 48, in literal_eval
      node_or_string = parse(node_or_string, mode='eval')
    File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ast.py", line 35, in parse
      return compile(source, filename, mode, PyCF_ONLY_AST)
    File "&lt;unknown&gt;", line 1
      &lt;zip object at 0x12d6549c8&gt;
  </code></pre>