Do you know how to use lists, loops and functions?
You could make a list that has a (question, answer) tuple, shuffle the list, loop the list passing each iteration to a function that deals with asking for input agianst the passed in question and checks the input against the passed in answer.
You could make a list that has a (question, answer) tuple, shuffle the list, loop the list passing each iteration to a function that deals with asking for input agianst the passed in question and checks the input against the passed in answer.