title: Why pymongo throwing Attribute-error: 'Cursor' object has no attribute 'find' on second time execution
body: <p>In pymongo, first time when I am executing i am getting the proper out. Second I am getting AttributeError: 'Cursor' object has no attribute 'find'</p>
  
  <pre><code>courses = courses.find()
  for course in courses:
      pprint.pprint(course)
  </code></pre>
  
  <p>Full code is below, don't forget the install and start mongod server</p>
  
  <pre><code>from pymongo import MongoClient
  import pprint
  client = MongoClient()
  client = MongoClient('mongodb://localhost:27017')
  db  = client['test-database']
  ##New collection #courses = db['course']
  courses = db.courses
  print (courses)
  #insert new document# create a new dict
  course = {
      'author':'Mak',
      'course':'Data',
      'price': 100,
      'rating':5
      }
  #insert
  result = courses.insert_one(course)
  #check whether doc is inserted
  if result.acknowledged:
      print ("course added course id is", str(result.inserted_id))
  #how to insert many doc
  arr_courses =  [ {
      'author':'Hus',
      'course':'Data',
      'price': 100,
      'rating':5},
  {
      'author':'ais',
      'course':'Data',
      'price': 100,
      'rating':3.5}
  ]
  
  result = courses.insert_many(arr_courses)
  for object_id in result.inserted_ids:
      print ("course added course id is", object_id)
  courses.find_one()
  print (course)
  courses = courses.find()
  for course in courses:
      pprint.pprint(course)
  </code></pre>
  
  <p>My Question how to use <code>courses = courses.find()</code> again and again for processing?</p>