diff --git a/poc_hugo.py b/poc_hugo.py new file mode 100644 index 0000000..4dc2cc3 --- /dev/null +++ b/poc_hugo.py @@ -0,0 +1,26 @@ +#!/usr/bin/python3 + +import pathlib +import time +import os +import csv +import random +from collections import Counter +from rich.console import Console +from rich.markdown import Markdown + +def _create_dictionnary(): + with open(path) as file: + reader = csv.DictReader(file) + data = list(reader) + + question = random.choice(data) + return question + +if __name__ == "__main__": + path = "./data/list_book1.csv" + _create_dictionnary() + print(get_random_question()) + + + print() \ No newline at end of file