Description

I am trying to make a python code that does flashcards for diffterent subject and quizzes the user on them so i need a code which does the following:

Ask the user: New or Saved subject?

If the user choses a new subject : create a new file for the subject

Prompt for flashcards

Save the flashcards to the file as they are entered

If the user choses a saved subject : open the file for that saved subject

Test the user randomly on the saved flashcards

i have already completed everything except the subject part