Is there a way to "automatically" create a certain number of instances of a class in Python?
Hey there, I wrote a program to distribute presentation/essay topics to a certain number of students based on their first priority topic, second priority topic and one topic they don't want to have at all. I started out with a class named students because at that point I figured it would be a good way to store the name, priority values and the resulting topic of the student. The program works for my sample of five students (and five topics) now but I'd like to extend it to a variable number of students, preferably without having to enter every student by hand but for example creating as many students (instances) as there are in my name list, but I can't seem to be able to find a solution how to do that that actually works (I don't mind if you tell me that was a ridiculous way to write the program in the first place, it was the first project I made up on my own😅).