training task from https://hyperskill.org/projects/159
Example 1:
1. Add flashcards
2. Practice flashcards
3. Exit
> 2
There is no flashcard to practice!
1. Add flashcards
2. Practice flashcards
3. Exit
> 1
1. Add a new flashcard
2. Exit
> 1
Question:
> What is the Capital of Turkey?
Answer:
> Ankara
1. Add a new flashcard
2. Exit
> 1
Question:
> What is the capital of Croatia?
Answer:
> Zagreb
1. Add a new flashcard
2. Exit
> 2
1. Add flashcards
2. Practice flashcards
3. Exit
>> 2
Question: What is the Capital of Turkey?
press "y" to see the answer:
press "n" to skip:
press "u" to update:
> y
Answer: Ankara
press "y" if your answer is correct:
press "n" if your answer is wrong:
> y
Question: What is the capital of Croatia?
press "y" to see the answer:
press "n" to skip:
press "u" to update:
> y
Answer: Zagreb
press "y" if your answer is correct:
press "n" if your answer is wrong:
> n
1. Add flashcards
2. Practice flashcards
3. Exit
>> 2
Question: What is the Capital of Turkey?
press "y" to see the answer:
press "n" to skip:
press "u" to update:
> y
Answer: Ankara
press "y" if your answer is correct:
press "n" if your answer is wrong:
> y
Question: What is the capital of Croatia?
press "y" to see the answer:
press "n" to skip:
press "u" to update:
> n
press "y" if your answer is correct:
press "n" if your answer is wrong:
> n
1. Add flashcards
2. Practice flashcards
3. Exit
>> 2
Question: What is the Capital of Turkey?
press "y" to see the answer:
press "n" to skip:
press "u" to update:
> y
Answer: Ankara
press "y" if your answer is correct:
press "n" if your answer is wrong:
> y
Question: What is the capital of Croatia?
press "y" to see the answer:
press "n" to skip:
press "u" to update:
> y
Answer: Zagreb
press "y" if your answer is correct:
press "n" if your answer is wrong:
> y
1. Add flashcards
2. Practice flashcards
3. Exit
> 2
Question: What is the capital of Croatia?
press "y" to see the answer:
press "n" to skip:
press "u" to update:
> y
Answer: Zagreb
press "y" if your answer is correct:
press "n" if your answer is wrong:
> y
1. Add flashcards
2. Practice flashcards
3. Exit
> 2
Question: What is the capital of Croatia?
press "y" to see the answer:
press "n" to skip:
press "u" to update:
> y
Answer: Zagreb
press "y" if your answer is correct:
press "n" if your answer is wrong:
> y
1. Add flashcards
2. Practice flashcards
3. Exit
> 2
There is no flashcard to practice!
1. Add flashcards
2. Practice flashcards
3. Exit
> 3
Bye!
Example 2:
1. Add flashcards
2. Practice flashcards
3. Exit
> 6
6 is not an option
1. Add flashcards
2. Practice flashcards
3. Exit
> 1
1. Add a new flashcard
2. Exit
> 3
3 is not an option
1. Add a new flashcard
2. Exit
> 1
Question:
>
Question:
> what is the capital of Iran?
Answer:
> Tehran
1. Add a new flashcard
2. Exit
> 2
1. Add flashcards
2. Practice flashcards
3. Exit
> 2
Question: what is the capital of Iran?
press "y" to see the answer:
press "n" to skip:
press "u" to update:
> 6
6 is not an option
press "y" to see the answer:
press "n" to skip:
press "u" to update:
> y
Answer: Tehran
press "y" if your answer is correct:
press "n" if your answer is wrong:
>>
is not an option
press "y" if your answer is correct:
press "n" if your answer is wrong:
>> b
b is not an option
press "y" if your answer is correct:
press "n" if your answer is wrong:
>> y
1. Add flashcards
2. Practice flashcards
3. Exit
> 3
Bye!