Name Randomizer¶
Indices and tables¶
Background¶
One afternoon, you are suddenly faced with the need to distribute 50+ student names between two classes. To avoid a conflict of interest or accusations of bias, you need to find a way to do it fairly and quickly (you have other things to do).
Exercise¶
Implement a name randomizer that takes a list of names and splits them into two separate lists.
The input list of names can be:
1 - Hardcoded within the script, or,
2 - In an external file
The output list of names can be:
1 - Printed to the terminal, or,
2 - Written to a file (1 file per output list)