Python Project – Flash Card App
Master Python with 70+ Hands-on Projects and Get Job-ready - Learn Python
Program 1
#Flash Card App Project
def flash_card_app():
flashcards ={
"What is the capital of India?": "Delhi",
"What is 10 + 10?": "20",
"Who wrote 'Harry Potter'?": "J.K. Rowling",
"Where is Taj Mahal ?": "Agra",
"Mouse is an......... Device?": "Hardware",
"Which animal is known as the Ship of the Desert?": "Camel",
"How many days are there in a week?": "7",
"How many letters are there in the English alphabet?": "26",
"Rainbow consist of how many colours?": "7" ,
"What is 50+20? ": "70"
}
count=0
for question,answer in flashcards.items():
print(question)
userans=input("Enter Your Answser: ")
if(userans==answer):
count=count+1
str="Out of 10 You got {} Marks "
str=str.format(count)
print(str)
print("********** Correct Answer ****************")
for question,answer in flashcards.items():
print(question)
input("Press Enter to reveal the answer...")
print(answer)
# Main Calling
flash_card_app()
Your 15 seconds will encourage us to work even harder
Please share your happy experience on Google

