title: How to get the assignment title from Google Classroom with Python
body: <p>I want to get the assignment title of each assignment posted by the teacher in a specific course in Google Classroom. Can someone help me with this? When I try the API explorer on the official website, it returns the correct result but it doesn't work with my python file.</p>
  <pre><code>    service = build('classroom', 'v1', credentials=creds)
  
      # Call the Classroom API
      results = service.courses().courseWork().get(courseId).execute()
      courses = results.get('courses')
  
      if not courses:
          print('No courses found.')
      else:
          print('Courses:')
          for course in courses:
              print(course)
  </code></pre>