Requirements: Write a Python program named "A2Q3C.py" includes the following functions and requirements and accept one list argument 1. A function named form_groups_of_3() 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"] W HAR Group 1 [["student a", "student b", "student c"], ["student d", "student e", "student f"], ["student g", "student h", "student i"], ["student j"]] BOYS User Group 2 BAN 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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

This is an exercise I found in internet, but it do not have the solution, Please help me to solve this question, if able please use # in the code to explain, thanks for your help

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"]
Group 1
[["student a", "student b", "student c"],
["student d", "student e", "student f"],
["student g", "student h", "student i"],
["student j"]]
BLOED
User
nom
Group 2
mant
many
subt
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.
Transcribed Image Text: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"] Group 1 [["student a", "student b", "student c"], ["student d", "student e", "student f"], ["student g", "student h", "student i"], ["student j"]] BLOED User nom Group 2 mant many subt 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.
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY