select the full list of answer options is the combination of these three wrong answers with the correct answers finallythe answers need to be randomized so that the correct response isn' always choice step write content to the quiz and answer key files all that is left is to write the question to the quiz file and the answer to the answer key file make your code look like the following#python randomquizgenerator py creates quizzes with questions and answers in random orderalong with the answer key --snip-loop through all statesmaking question for each for questionnum in range( )--snip-write the question and the answer options to the quiz file quizfile write( '{questionnum what is the capital of {states[questionnum]}?\ 'for in range( )quizfile write( {'abcd'[ ]answeroptions[ ]}\ "quizfile write('\ 'write the answer key to file answerkeyfile write( "{questionnum {'abcd'[answeroptions index(correctanswer)]}"quizfile close(answerkeyfile close( for loop that goes through integers to will write the answer options in the answeroptions list the expression 'abcd'[iat treats the string 'abcdas an array and will evaluate to ' ',' '' 'and then 'don each respective iteration through the loop in the final line the expression answeroptions index(correctanswerwill find the integer index of the correct answer in the randomly ordered answer optionsand 'abcd'[answeroptions index(correctanswer)will evaluate to the correct answer' letter to be written to the answer key file after you run the programthis is how your capitalsquiz txt file will lookthough of course your questions and answer options may be different from those shown heredepending on the outcome of your random shuffle(callsnamedateperiodstate capitals quiz (form reading and writing files