Hello, I am making a practice quiz maker/taker. Right now I want to have my program prompt the user to input what Subject and chapter they want to study. Then the program will display the question first and wait for an input then display the answer afterwards. My values is a list of tuples but I want to retrieve the questions from that tuple. Basically the first item of the list that is inside the tuple.
For context print(pracQA_Data[userInputSubject].values()) would print something like this.
dict_values([[['question1', 'answer1'], ['question2', 'answer2']], [['question3', 'answer3']]])
I want my program to randomly pick the questions from this list of tuples on by one.
In doing some research I found that random.choice works with dictionaries but I don't know how to progress or use it in this case.