groupify is a Python package for automatically creating random groups in the classroom from a classlist.
NOTE: there is currently no way to ensure that Newton and Leibniz are not in the same group. They must cooperate if necessary.
import groupify
classlist = "sample_class.txt"
groupify.create(
classlist=classlist,
group_size=4,
)
groupify.savefig(dirname="../figures/", fname="example_1.svg")
groupify.show()This will generate the following groups (randomly):
import groupify
classlist = "sample_class.txt"
groupify.create(
classlist=classlist,
group_size=3,
)
groupify.savefig(dirname="../figures/", fname="example_2.svg")
groupify.show()This will generate the following groups (randomly):
import groupify
classlist = "sample_class.txt"
groupify.create(
classlist=classlist,
group_size=2,
)
groupify.savefig(dirname="../figures/", fname="example_3.svg")
groupify.show()This will generate the following groups (randomly):