Question: I want to implement the function alpha grouper(grouper) make_grouping function! if you could help me, (should work for all cases, and making sure no nonetype

 I want to implement the function alpha grouper(grouper) make_grouping function! if

you could help me, (should work for all cases, and making sure

no nonetype error is raised..) thanks ! its python! if u take

I want to implement the function alpha grouper(grouper) make_grouping function! if you could help me, (should work for all cases, and making sure no nonetype error is raised..) thanks !

its python!

if u take a screenshot and zoom in, the image is clear!

class AlphaGrouper (Grouper): A grouper that groups students in a given course according to the alphabetical order of their names. 235 Public Attributes uus group size: the ideal number of students that should be in each group 2 Representation Invariants zu group_size > 1 group_size: int 138 of def make_grouping(self, course: Course, survey! Survey) -> Grouping Return a grouping for all students in whose names come first when sorted alphabetically, the second group should contain the next students in that order, etc. ALL groups in this grouping should have exactly self.group_size members except for the last group which may have fewer than self.group_size members if that is required to make sure all students in 1 group_size: int 136 o 137 138 of 139 def make crouping (self, course: Course, survey! Survey) -> Grouping Return a grouping for all students in 1 group_size: int def _init_(self, group size: int) -> None : Initialize a grouper that creates groups of size === Precondition === group size > 1 self.group_size = group_size def make srouping(self, course: Course, survey: Survey) -> Grouping! *** Return a grouping for all students in using the questions in to create the grouping. raise Not ImplementedError class AlphaGrouper (Grouper): A grouper that groups students in a given course according to the alphabetical order of their names. 235 Public Attributes uus group size: the ideal number of students that should be in each group 2 Representation Invariants zu group_size > 1 group_size: int 138 of def make_grouping(self, course: Course, survey! Survey) -> Grouping Return a grouping for all students in whose names come first when sorted alphabetically, the second group should contain the next students in that order, etc. ALL groups in this grouping should have exactly self.group_size members except for the last group which may have fewer than self.group_size members if that is required to make sure all students in 1 group_size: int 136 o 137 138 of 139 def make crouping (self, course: Course, survey! Survey) -> Grouping Return a grouping for all students in 1 group_size: int def _init_(self, group size: int) -> None : Initialize a grouper that creates groups of size === Precondition === group size > 1 self.group_size = group_size def make srouping(self, course: Course, survey: Survey) -> Grouping! *** Return a grouping for all students in using the questions in to create the grouping. raise Not ImplementedError

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!