title: Can not push the data into array using Python
body: <p>I am trying to push data into array using Python but getting the following error.</p>
  
  <pre><code>root[].append({'lname':lname,'roomname':roomname,'seat':seat,'project':project,'video':video})
           ^
  SyntaxError: invalid syntax
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>def viewbook(request):
      doc = minidom.parse("roomlist.xml")
      staffs = doc.getElementsByTagName("location")
      for staff in staffs:
          lname=staff.getAttribute("name");
          roomname=staff.getElementsByTagName("roomname")[0]
          seat=staff.getElementsByTagName("noseats")[0]
          project=staff.getElementsByTagName("projectorscreen")[0]
          video=staff.getElementsByTagName("videoconf")[0]
          root[].append({'lname':lname,'roomname':roomname,'seat':seat,'project':project,'video':video})
      return render(request,'booking/viewbook.html',{'people': root}) 
  </code></pre>
  
  <p>Here I need to push the set of data into one array.</p>