I'm totally new to python. Just trying to find out how to pick few, but not the same (unique by ID) winners from the .csv file. Anyone could help?
Here's my code that choose only one winner: https://pastebin.com/89TuvxuZ
What have I tried - edited the generation function to make it choose 5 winners (unfortunately, it didn't worked): https://pastebin.com/GPA3gkeg
Algorithm I'd like to use:
1. Open csv file
2. Pick chosen number of winners
3. Print and save them to docx
4. Delete them from csv
5. Close csv file
Here's my code that choose only one winner: https://pastebin.com/89TuvxuZ
What have I tried - edited the generation function to make it choose 5 winners (unfortunately, it didn't worked): https://pastebin.com/GPA3gkeg
Algorithm I'd like to use:
1. Open csv file
2. Pick chosen number of winners
3. Print and save them to docx
4. Delete them from csv
5. Close csv file