vendredi 2 novembre 2018

writing my first python code, a random chore assignment script

I am beginning to learn python and do not know where to start here.

The goal is to make an script that takes 6-7 people, and randomly assigns them to a certain list of chores, probably around 5-8 different chores. I have seen some code for a similar project, except instead of outputting who has what chore neatly, it just emails the individual their specific chore. I might like to add the email fuctionality down the line, but either way I still need it to output neatly (and randomly) like:

{Person1 is on %CHORENAME}

{Person2 is on %DIFFERENTCHORENAME}

ect

so that when it is time to assign chores I can just execute the script and have the fair random results. Down the line it would be cool to have the script email each individual thier specific chore, and everyone elses assigned chore. Thanks for the help, looking forward to using stackoverflow on my quest to learn C, assembly, and python. Will be a long road. Point me in the right direction please!




Aucun commentaire:

Enregistrer un commentaire