

{"id":82552,"date":"2020-09-17T16:00:35","date_gmt":"2020-09-17T10:30:35","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=82552"},"modified":"2026-06-01T12:12:24","modified_gmt":"2026-06-01T06:42:24","slug":"python-rock-paper-scissors-game","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/","title":{"rendered":"Python Rock Paper Scissors Game"},"content":{"rendered":"<p>Rock paper scissors game is also known as stone paper scissors. It is a hand game that is usually played between 2 people, each player can randomly form any one of three from their hand.<\/p>\n<p>A player who chooses rock will win by another player who chooses scissors but loose by the player who chooses paper; a player with paper will loose by the player with the scissors.<\/p>\n<p>If both players choose the same then the game is tied. Rock paper scissors game is mainly played among kids.<\/p>\n<h2>Rock-Paper-Scissors Game Python Project<\/h2>\n<p>The object of the rock-paper-scissor python project is to build a game for a single player that plays with a computer, anywhere, and anytime. This project is base on the rules that:<\/p>\n<ul>\n<li>rock blunts scissors so rock wins<\/li>\n<li>scissors cut the paper so scissors win<\/li>\n<li>paper cover rock so paper wins<\/li>\n<\/ul>\n<p>This project is build using tkinter, random modules, and the basic concept of python.<\/p>\n<p>In this python project, players have to choose any one from rock, paper, and scissors. Then click on the play button will show the result of the game.<\/p>\n<h3>Project Prerequisites<\/h3>\n<p>To implement this python rock paper scissors project we will use the basic concept of python with tkinter and random module.<\/p>\n<ul>\n<li><strong>Tkinte<\/strong>r is a standard GUI library which is one of the easiest ways to build a GUI application.<\/li>\n<li><strong>random<\/strong> module use to generate random numbers<\/li>\n<\/ul>\n<p>To install the libraries we can use the pip installer command on the command prompt:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">pip install tkinter\r\npip install random\r\n<\/pre>\n<h3>Download Code of Rock-Paper-Scissors Python Project<\/h3>\n<p>Please download the source code of rock paper scissors project: <a href=\"https:\/\/drive.google.com\/file\/d\/1vfJ3ZwIUfodt4xf7wgrDRYhovktT9kc5\/view?usp=drive_link\"><strong>Python Rock Paper Scissors<\/strong><\/a><\/p>\n<h3>Project File Structure<\/h3>\n<p>These are the step to build a rock-paper-scissors game using python:<\/p>\n<ul>\n<li>Import required libraries<\/li>\n<li>Initialize window<\/li>\n<li>Code for user choice<\/li>\n<li>Code for computer choice<\/li>\n<li>Define functions<\/li>\n<li>Define buttons<\/li>\n<\/ul>\n<p>Let\u2019s start<\/p>\n<h4>1. Importing Libraries<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">from tkinter import *\r\nimport random\r\n<\/pre>\n<p>The first step is to import libraries. Here, we required two modules so we need to import Tkinter and random modules.<\/p>\n<p><strong>2. Initialize Window<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">root = Tk()\r\nroot.geometry('400x400')\r\nroot.resizable(0,0)\r\nroot.title('DataFlair-Rock,Paper,Scissors')\r\nroot.config(bg ='seashell3')\r\n<\/pre>\n<ul>\n<li><strong>Tk()<\/strong> use to initialized Tkinter to create window<\/li>\n<li><strong>geometry()<\/strong> sets the window width and height<\/li>\n<li><strong>resizable(0,0)<\/strong> by this command we can fix the size of the window<\/li>\n<li><strong>title()<\/strong> used to set the title of the window<\/li>\n<li><strong>bg = \u2018\u2019<\/strong> use to set the color of the background<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Label(root, text = 'Rock, Paper ,Scissors' , font='arial 20 bold', bg = 'seashell2').pack()\r\n<\/pre>\n<ul>\n<li><strong>Label()<\/strong> widget used when we want to display text that users can\u2019t modify.<\/li>\n<li><strong>root<\/strong> is the name of our window<\/li>\n<li><strong>text<\/strong> which displays on the label as the title of that label<\/li>\n<li><strong>font<\/strong> in which form the text is written<\/li>\n<li><strong>pack<\/strong> used to the organized widget in form of block<\/li>\n<\/ul>\n<h4>3. For User Choice<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">user_take = StringVar()\r\nLabel(root, text = 'choose any one: rock, paper ,scissors' , font='arial 15 bold', bg = 'seashell2').place(x = 20,y=70)\r\nEntry(root, font = 'arial 15', textvariable = user_take , bg = 'antiquewhite2').place(x=90 , y = 130)\r\n<\/pre>\n<ul>\n<li><strong>user_take<\/strong> is a string type variable that stores the choice that the user enters.<\/li>\n<li><strong>Entry()<\/strong> widget used when we want to create an input text field.<\/li>\n<\/ul>\n<blockquote>\n<ol>\n<li>textvariable used to retrieve the text to entry widget<\/li>\n<li>place() \u2013 place widgets at specific position<\/li>\n<\/ol>\n<\/blockquote>\n<h4>4. For Computer Choice<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">comp_pick = random.randint(1,3)\r\nif comp_pick == 1:\r\n    comp_pick = 'rock'\r\nelif comp_pick ==2:\r\n    comp_pick = 'paper'\r\nelse:\r\n    comp_pick = 'scissors'\r\n<\/pre>\n<p>random.randint() function will randomly take any number from the given number.<\/p>\n<p>Here we give the if-else() condition to play rock paper scissors<\/p>\n<ul>\n<li>If the computer choose 1 then the rock will set to comp_pick variable<\/li>\n<li>If the computer choose 2 then the paper will set to comp_pick variable<\/li>\n<li>If the computer choose 3 then scissors will set to comp_pick variable<\/li>\n<\/ul>\n<h4>5. Function to Start Game<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Result = StringVar()\r\n\r\ndef play():\r\n    user_pick = user_take.get()\r\n    if user_pick == comp_pick:\r\n        Result.set('tie,you both select same')\r\n    elif user_pick == 'rock' and comp_pick == 'paper':\r\n        Result.set('you loose,computer select paper')\r\n    elif user_pick == 'rock' and comp_pick == 'scissors':\r\n        Result.set('you win,computer select scissors')\r\n    elif user_pick == 'paper' and comp_pick == 'scissors':\r\n        Result.set('you loose,computer select scissors')\r\n    elif user_pick == 'paper' and comp_pick == 'rock':\r\n        Result.set('you win,computer select rock')\r\n    elif user_pick == 'scissors' and comp_pick == 'rock':\r\n        Result.set('you loose,computer select rock')\r\n    elif user_pick == 'scissors' and comp_pick == 'paper':\r\n        Result.set('you win ,computer select paper')\r\n    else:\r\n        Result.set('invalid: choose any one -- rock, paper, scissors')\r\n<\/pre>\n<h4>6. Function to Reset<\/h4>\n<ul>\n<li><strong>user_take<\/strong> is a string type variable that stores the choice that the user enters.<\/li>\n<li>We give if-else() condition to check who wins between user choice and computer choice.<\/li>\n<li>In this rock paper scissors game,\u00a0 a player who chooses rock will win by another player who chooses scissors but loose by the player who chooses paper; a player with paper will loose by the player with the scissors. If both choose the same then the game will tie.<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def Reset():\r\n    Result.set(\"\") \r\n    user_take.set(\"\")\r\n<\/pre>\n<h4>7. Function to Exit<\/h4>\n<p>This function set all variables to an empty string.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def Exit():\r\n    root.destroy()\r\n<\/pre>\n<p><strong>root.destroy(<\/strong>) will quit the rock paper scissors program by stopping the mainloop().<\/p>\n<h4>8. Define Buttons<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">Entry(root, font = 'arial 10 bold', textvariable = Result, bg ='antiquewhite2',width = 50,).place(x=25, y = 250)\r\n\r\nButton(root, font = 'arial 13 bold', text = 'PLAY'  ,padx =5,bg ='seashell4' ,command = play).place(x=150,y=190)\r\n\r\nButton(root, font = 'arial 13 bold', text = 'RESET'  ,padx =5,bg ='seashell4' ,command = Reset).place(x=70,y=310)\r\n\r\nButton(root, font = 'arial 13 bold', text = 'EXIT'  ,padx =5,bg ='seashell4' ,command = Exit).place(x=230,y=310)\r\n\r\n\r\nroot.mainloop()\r\n<\/pre>\n<ul>\n<li><strong>Button()<\/strong> widget used when we want to display a button.<\/li>\n<li><strong>command<\/strong> called the specific function when the button will be clicked.<\/li>\n<li><strong>root.mainloop()<\/strong> method executes when we run our program.<\/li>\n<\/ul>\n<h4>Rock Paper Scissors Program Output<\/h4>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/rock-paper-scissors-program-output.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-82557\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/rock-paper-scissors-program-output.png\" alt=\"rock paper scissors program output\" width=\"1366\" height=\"706\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/rock-paper-scissors-program-output.png 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/rock-paper-scissors-program-output-300x155.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/rock-paper-scissors-program-output-1024x529.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/rock-paper-scissors-program-output-150x78.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/rock-paper-scissors-program-output-768x397.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/rock-paper-scissors-program-output-520x269.png 520w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2>Summary<\/h2>\n<p>we have successfully developed the rock-paper-scissors game using python. We used Tkinter library for rendering graphics. We use a random module to generate random choices. We learn how to create button widget. We also learn how to call the function using button. In this way, we created a rock-paper-scissors python game.<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:2519,&quot;href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1vfJ3ZwIUfodt4xf7wgrDRYhovktT9kc5\\\/view?usp=drive_link&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20260601064236\\\/https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1vfJ3ZwIUfodt4xf7wgrDRYhovktT9kc5\\\/view?usp=drive_link&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-06-01 09:35:38&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-04 09:36:47&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-07 16:44:43&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-10 21:47:26&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-14 03:48:04&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-17 14:39:01&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-17 14:39:01&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Rock paper scissors game is also known as stone paper scissors. It is a hand game that is usually played between 2 people, each player can randomly form any one of three from their&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":82558,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[],"class_list":["post-82552","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Rock Paper Scissors Game - DataFlair<\/title>\n<meta name=\"description\" content=\"Python Rock Paper Scissors game - Develop a python game program for a single player with tkinter library and random module.\" \/>\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\/python-rock-paper-scissors-game\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Rock Paper Scissors Game - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Python Rock Paper Scissors game - Develop a python game program for a single player with tkinter library and random module.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/\" \/>\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=\"2020-09-17T10:30:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-01T06:42:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/python-rock-paper-scissor-game.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Rock Paper Scissors Game - DataFlair","description":"Python Rock Paper Scissors game - Develop a python game program for a single player with tkinter library and random module.","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\/python-rock-paper-scissors-game\/","og_locale":"en_US","og_type":"article","og_title":"Python Rock Paper Scissors Game - DataFlair","og_description":"Python Rock Paper Scissors game - Develop a python game program for a single player with tkinter library and random module.","og_url":"https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2020-09-17T10:30:35+00:00","article_modified_time":"2026-06-01T06:42:24+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/python-rock-paper-scissor-game.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Python Rock Paper Scissors Game","datePublished":"2020-09-17T10:30:35+00:00","dateModified":"2026-06-01T06:42:24+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/"},"wordCount":736,"commentCount":13,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/python-rock-paper-scissor-game.jpg","articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/","url":"https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/","name":"Python Rock Paper Scissors Game - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/python-rock-paper-scissor-game.jpg","datePublished":"2020-09-17T10:30:35+00:00","dateModified":"2026-06-01T06:42:24+00:00","description":"Python Rock Paper Scissors game - Develop a python game program for a single player with tkinter library and random module.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/python-rock-paper-scissor-game.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/09\/python-rock-paper-scissor-game.jpg","width":1200,"height":628,"caption":"python rock paper scissor"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/python-rock-paper-scissors-game\/#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":"Python Rock Paper Scissors Game"}]},{"@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\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/82552","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=82552"}],"version-history":[{"count":5,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/82552\/revisions"}],"predecessor-version":[{"id":148590,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/82552\/revisions\/148590"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/82558"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=82552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=82552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=82552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}