Oct-24-2018, 09:58 PM
Hey. I'm Chris. I'm new to this forum and pretty new to python too. I've learned enough that I want to try building a small program that I can actually use.
I'm trying to make a simple little flashcard program that will run in the terminal. I have the questions and answers saved in .txt files. I've figured out how to get python to display the text in a file, but am having trouble displaying one thing in the file at a time.
The answers are on the same line as the questions, separated by a couple tabs.
How do I get python to display the first question then wait til I press enter to display the answer, then wait again for enter to display the next question, and so forth?
I'm trying to make a simple little flashcard program that will run in the terminal. I have the questions and answers saved in .txt files. I've figured out how to get python to display the text in a file, but am having trouble displaying one thing in the file at a time.
The answers are on the same line as the questions, separated by a couple tabs.
How do I get python to display the first question then wait til I press enter to display the answer, then wait again for enter to display the next question, and so forth?