Write a program for group forming (Continued) The program should be written in "A2Q3C.py". Requirements: Write a Python program named "A2Q3C.py" includes the following functions and requirements 1. A function named form_groups_of_3() and accept one list argument a. The list argument is expected to be a list of student names b. This function is to from groups in 3 from the list of student names (there might be groups having only one or two members) i.e. ["student a", "student b", "student c", "student d", "student e", "student f", "student g", "student h", "student i", "student j"] -> [["student a", "student b", "student c"], ["student d", "student e", "student f"], "student i"], ["student g", "student h", ["student j"]] S Group 1 Group 2 Group 3 Group 4 Class Group List c. Use a list named class_group_list to represent the whole class, containing lists representing all the groups. d. class_group_list can be an empty list but there cannot be any empty group. i.e. class_group_list- [] when there is no student in this class e. Add the student from the list of student names to the 3 groups one by one to a group until that group has 3 students.
Write a program for group forming (Continued) The program should be written in "A2Q3C.py". Requirements: Write a Python program named "A2Q3C.py" includes the following functions and requirements 1. A function named form_groups_of_3() and accept one list argument a. The list argument is expected to be a list of student names b. This function is to from groups in 3 from the list of student names (there might be groups having only one or two members) i.e. ["student a", "student b", "student c", "student d", "student e", "student f", "student g", "student h", "student i", "student j"] -> [["student a", "student b", "student c"], ["student d", "student e", "student f"], "student i"], ["student g", "student h", ["student j"]] S Group 1 Group 2 Group 3 Group 4 Class Group List c. Use a list named class_group_list to represent the whole class, containing lists representing all the groups. d. class_group_list can be an empty list but there cannot be any empty group. i.e. class_group_list- [] when there is no student in this class e. Add the student from the list of student names to the 3 groups one by one to a group until that group has 3 students.
C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.5: Case Studies
Problem 3E
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr