title: OR condition in motor python
body: <p>Hi I am experimenting with python and mongodb with tornado framework. I am having entry module where user can insert the data of students in academic and sports field. In mongodb terminal I did search with </p>
  
  <pre><code>db.student.find( { $or: [ { "academy": name  }, { "sports": name } ] } )
  </code></pre>
  
  <p>but when I try to do the same with python along with MOTOR driver I end up with error.</p>
  
  <p>My python command is</p>
  
  <pre><code>doc = yield db.student.find_one({ $or: [{"academy": name}, {"sports": name}]})
  </code></pre>
  
  <p>Can anyone guide me how I can do the search with or condition in python motor?</p>
  
  <p>The or condition is used to check whether the data of particular student is entered in both the fields or not.</p>