

{"id":145000,"date":"2025-05-05T15:12:30","date_gmt":"2025-05-05T09:42:30","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=145000"},"modified":"2025-05-05T15:12:30","modified_gmt":"2025-05-05T09:42:30","slug":"flash-card-app-using-python","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/flash-card-app-using-python\/","title":{"rendered":"Flash Card App using Python"},"content":{"rendered":"<h3>Program 1<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def flash_card_app():\r\n    flashcards ={\r\n        \"What is the capital of India?\": \"Delhi\",\r\n        \"What is 10 + 10?\": \"20\",\r\n        \"Who wrote 'Harry Potter'?\": \"J.K. Rowling\",\r\n        \"Where is Taj Mahal ?\": \"Agra\",\r\n        \"Python  is ............?\": \"Language\",\r\n        \"Which animal is known as the Ship of the Desert?\": \"Camel\",\r\n        \"How many days are there in a week?\": \"7\",\r\n        \"How many letters are there in the English alphabet?\": \"26\",\r\n        \"Rainbow consist of how many colours?\": \"7\" ,\r\n        \"What is 50-10? \": \"40\"\r\n    }\r\n    count=0\r\n    for question,answer in flashcards.items():\r\n        print(question)\r\n        myans=input(\"Your Answer is : \")\r\n        if(answer==myans):\r\n            count=count+1\r\n\r\n    print(\"Out  of 10 your correct Answer is:  \",count)\r\n    print(\"********** Correct Answer ****************\")\r\n    for question,answer in flashcards.items():\r\n        print(question)\r\n        input(\"Press Enter to reveal the answer...\")\r\n        print(answer)\r\n\r\n\r\n#Main \r\nflash_card_app()<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Program 1 def flash_card_app(): flashcards ={ &#8220;What is the capital of India?&#8221;: &#8220;Delhi&#8221;, &#8220;What is 10 + 10?&#8221;: &#8220;20&#8221;, &#8220;Who wrote &#8216;Harry Potter&#8217;?&#8221;: &#8220;J.K. Rowling&#8221;, &#8220;Where is Taj Mahal ?&#8221;: &#8220;Agra&#8221;, &#8220;Python is &#8230;&#8230;&#8230;&#8230;?&#8221;:&#46;&#46;&#46;<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[34109,34106,34153,34107,10333,34105,34108,28626,22366,21082],"class_list":["post-145000","post","type-post","status-publish","format-standard","hentry","category-python","tag-flash-card-app","tag-flash-card-app-in-python","tag-flash-card-app-project-using-python","tag-flash-card-app-using-python","tag-python","tag-python-flash-card-app","tag-python-flash-card-app-project","tag-python-practical","tag-python-program","tag-python-project"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Flash Card App using Python - DataFlair<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/flash-card-app-using-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Flash Card App using Python - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Program 1 def flash_card_app(): flashcards ={ &quot;What is the capital of India?&quot;: &quot;Delhi&quot;, &quot;What is 10 + 10?&quot;: &quot;20&quot;, &quot;Who wrote &#039;Harry Potter&#039;?&quot;: &quot;J.K. Rowling&quot;, &quot;Where is Taj Mahal ?&quot;: &quot;Agra&quot;, &quot;Python is ............?&quot;:&#046;&#046;&#046;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/flash-card-app-using-python\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-05T09:42:30+00:00\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Flash Card App using Python - DataFlair","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/flash-card-app-using-python\/","og_locale":"en_US","og_type":"article","og_title":"Flash Card App using Python - DataFlair","og_description":"Program 1 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\", \"Python is ............?\":&#46;&#46;&#46;","og_url":"https:\/\/data-flair.training\/blogs\/flash-card-app-using-python\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2025-05-05T09:42:30+00:00","author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/flash-card-app-using-python\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/flash-card-app-using-python\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/c187795dc82ab948373cca526df7c445"},"headline":"Flash Card App using Python","datePublished":"2025-05-05T09:42:30+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/flash-card-app-using-python\/"},"wordCount":7,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"keywords":["flash card app","flash card app in python","flash card app project using python","flash card app using python","Python","python flash card app","python flash card app project","python practical","python program","Python project"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/flash-card-app-using-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/flash-card-app-using-python\/","url":"https:\/\/data-flair.training\/blogs\/flash-card-app-using-python\/","name":"Flash Card App using Python - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"datePublished":"2025-05-05T09:42:30+00:00","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/flash-card-app-using-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/flash-card-app-using-python\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/flash-card-app-using-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Python Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/python\/"},{"@type":"ListItem","position":3,"name":"Flash Card App using Python"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/c187795dc82ab948373cca526df7c445","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team provides high-impact content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We make complex concepts easy to grasp, helping learners of all levels succeed in their tech careers.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam6\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/145000","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=145000"}],"version-history":[{"count":3,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/145000\/revisions"}],"predecessor-version":[{"id":145015,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/145000\/revisions\/145015"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=145000"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=145000"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=145000"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}