1616from googleapiclient import errors
1717import json
1818
19+
1920class ClassroomSnippets (object ):
2021 def __init__ (self , service ):
2122 self .service = service
@@ -25,14 +26,15 @@ def create_course(self):
2526 Creates a 10th Grade Biology course.
2627 """
2728 service = self .service
28- # [START classroom_create_course]
29+ # [START classroom_create_course]
2930 course = {
3031 'name' : '10th Grade Biology' ,
3132 'section' : 'Period 2' ,
3233 'descriptionHeading' : 'Welcome to 10th Grade Biology' ,
33- 'description' : """We'll be learning about about the structure of living
34- creatures from a combination of textbooks, guest
35- lectures, and lab work. Expect to be excited!""" ,
34+ 'description' : """We'll be learning about about the
35+ structure of living creatures from a
36+ combination of textbooks, guest lectures,
37+ and lab work. Expect to be excited!""" ,
3638 'room' : '301' ,
3739 'ownerId' : 'me' ,
3840 'courseState' : 'PROVISIONED'
@@ -46,7 +48,7 @@ def get_course(self):
4648 Retrieves a classroom course by its id.
4749 """
4850 service = self .service
49- # [START classroom_get_course]
51+ # [START classroom_get_course]
5052 course_id = '123456'
5153 try :
5254 course = service .courses ().get (id = course_id ).execute ()
0 commit comments