

{"id":84748,"date":"2020-12-21T12:43:57","date_gmt":"2020-12-21T07:13:57","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=84748"},"modified":"2026-06-01T12:12:16","modified_gmt":"2026-06-01T06:42:16","slug":"snake-game-python-program","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/snake-game-python-program\/","title":{"rendered":"Snake Game in Python &#8211; Develop Snake Game Program"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:2522,&quot;href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1p3xWLh8MCWKEhn5T-2fHXljpVSAj7GSm\\\/view?usp=drive_link&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20260601064330\\\/https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1p3xWLh8MCWKEhn5T-2fHXljpVSAj7GSm\\\/view?usp=drive_link&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-06-02 06:39:05&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-05 22:40:52&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-08 22:45:52&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-08 22:45:52&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p>The snake game is a very popular and fun game. Every time the snake eats the fruit, its length grows longer that makes the game more difficult<\/p>\n<h3>About Snake Game Python Project<\/h3>\n<p>The objective of this python project is to build a snake game project. In this python project, the player has to move a snake so it touches the fruit. If the snake touches itself or the border of the game then the game will over.<\/p>\n<h3>Project Prerequisites<\/h3>\n<p>To build the snake game project we used the turtle module, random module, time module, and concept of python.<\/p>\n<p><strong>Turtle<\/strong> module gives us a feature to draw on a drawing board<\/p>\n<p><strong>Random<\/strong> module will be used to generate random numbers<\/p>\n<p><strong>Time<\/strong> module is an inbuilt module in python. It provides the functionality of time.<\/p>\n<p>To install python modules we use the pip install command in the command line:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pip install turtles\r\npip install random\r\n<\/pre>\n<h3>Download Snake Game Python Project<\/h3>\n<p>Please download the source code of snake game python project: <a href=\"https:\/\/drive.google.com\/file\/d\/1p3xWLh8MCWKEhn5T-2fHXljpVSAj7GSm\/view?usp=drive_link\"><strong>Python Snake Game Program<\/strong><\/a><\/p>\n<h3>Project File Structure<\/h3>\n<p>Steps to build a snake game project in python:<\/p>\n<ul>\n<li>Importing libraries<\/li>\n<li>Creating a game screen<\/li>\n<li>Creating snake and food<\/li>\n<li>Keyboard binding<\/li>\n<li>Game mainloop<\/li>\n<\/ul>\n<h4>1. Importing required module<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import turtle\r\nimport random\r\nimport time\r\n<\/pre>\n<p>We require turtle, random, and time module to import<\/p>\n<h4>2. Creating game screen<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">screen = turtle.Screen()\r\nscreen.title('DATAFLAIR SNAKE GAME')\r\nscreen.setup(width = 700, height = 700)\r\nscreen.tracer(0)\r\nturtle.bgcolor('turquoise')\r\n\r\nturtle.speed(5)\r\nturtle.pensize(4)\r\nturtle.penup()\r\nturtle.goto(-310,250)\r\nturtle.pendown()\r\nturtle.color('black')\r\nturtle.forward(600)\r\nturtle.right(90)\r\nturtle.forward(500)\r\nturtle.right(90)\r\nturtle.forward(600)\r\nturtle.right(90)\r\nturtle.forward(500)\r\nturtle.penup()\r\n<\/pre>\n<p><strong>Explanation<\/strong><\/p>\n<ul>\n<li><strong>title()<\/strong> will set the desired title of the screen<\/li>\n<li><strong>setup()<\/strong> used to set the height and width of the screen<\/li>\n<li><strong>tracer(0)<\/strong> will turn off the screen update<\/li>\n<li><strong>bgcolor()<\/strong> will set the background color<\/li>\n<li><strong>forward()<\/strong> will use to move the turtle in a forwarding direction for a specified amount<\/li>\n<li><strong>right()<\/strong> used to turn the turtle clockwise and <strong>left()<\/strong> used to turn the turtle anticlockwise<\/li>\n<li><strong>penup()<\/strong> will not draw while its move<\/li>\n<\/ul>\n<h4>3. Creating snake and food<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">snake = turtle.Turtle()\r\nsnake.speed(0)\r\nsnake.shape('square')\r\nsnake.color(\"black\")\r\nsnake.penup()\r\nsnake.goto(0,0)\r\nsnake.direction = 'stop'\r\n\r\nfruit = turtle.Turtle()\r\nfruit.speed(0)\r\nfruit.shape('circle')\r\nfruit.color('red')\r\nfruit.penup()\r\nfruit.goto(30,30)\r\n\r\nold_fruit=[]\r\n\r\nscoring = turtle.Turtle()\r\nscoring.speed(0)\r\nscoring.color(\"black\")\r\nscoring.penup()\r\nscoring.hideturtle()\r\nscoring.goto(0,300)\r\nscoring.write(\"Score :\",align=\"center\",font=(\"Courier\",24,\"bold\"))\r\n<\/pre>\n<p><strong>Explanation<\/strong><\/p>\n<ul>\n<li><strong>Turtle()<\/strong> will be used to create a new turtle object<\/li>\n<li><strong>hideturtle()<\/strong> will use to hide the turtle<\/li>\n<li><strong>goto()<\/strong> used to move the turtle at x and y coordinates<\/li>\n<\/ul>\n<h4>4. Keyboard binding<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def snake_go_up():\r\n    if snake.direction != \"down\":\r\n        snake.direction = \"up\"\r\n\r\ndef snake_go_down():\r\n    if snake.direction != \"up\":\r\n        snake.direction = \"down\"\r\n\r\ndef snake_go_left():\r\n    if snake.direction != \"right\":\r\n        snake.direction = \"left\"\r\n\r\ndef snake_go_right():\r\n    if snake.direction != \"left\":\r\n        snake.direction = \"right\"\r\n\r\ndef snake_move():\r\n    if snake.direction == \"up\":\r\n        y = snake.ycor()\r\n        snake.sety(y + 20)\r\n\r\n    if snake.direction == \"down\":\r\n        y = snake.ycor()\r\n        snake.sety(y - 20)\r\n\r\n    if snake.direction == \"left\":\r\n        x = snake.xcor()\r\n        snake.setx(x - 20)\r\n\r\n    if snake.direction == \"right\":\r\n        x = snake.xcor()\r\n        snake.setx(x + 20)\r\n\r\nscreen.listen()\r\nscreen.onkeypress(snake_go_up, \"Up\")\r\nscreen.onkeypress(snake_go_down, \"Down\")\r\nscreen.onkeypress(snake_go_left, \"Left\")\r\nscreen.onkeypress(snake_go_right, \"Right\")\r\n<\/pre>\n<p><strong>Explanation<\/strong><\/p>\n<p>screen.listen() function listen when key will press.<\/p>\n<p>If the Up key will press then the snake will move in up direction.<\/p>\n<p>If the Down key is pressed then the snake will move in the down direction.<\/p>\n<p>If Left key will press then the snake will move in left direction.<\/p>\n<p>If the Right key will press then the snake will move in the right direction<\/p>\n<h4>5. Snake and fruit collision<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">if snake.distance(fruit)&lt; 20:\r\n                x = random.randint(-290,270)\r\n                y = random.randint(-240,240)\r\n                fruit.goto(x,y)\r\n                scoring.clear()\r\n                score+=1\r\n                scoring.write(\"Score:{}\".format(score),align=\"center\",font=(\"Courier\",24,\"bold\"))\r\n                delay-=0.001\r\n                \r\n                new_fruit = turtle.Turtle()\r\n                new_fruit .speed(0)\r\n                new_fruit .shape('square')\r\n                new_fruit .color('red')\r\n                new_fruit .penup()\r\n                old_fruit.append(new_fruit )\r\n\r\nfor index in range(len(old_fruit)-1,0,-1):\r\n                a = old_fruit[index-1].xcor()\r\n                b = old_fruit[index-1].ycor()\r\n\r\n                old_fruit[index].goto(a,b)\r\n                                \r\n        if len(old_fruit)&gt;0:\r\n                a= snake.xcor()\r\n                b = snake.ycor()\r\n                old_fruit[0].goto(a,b)\r\n        snake_move()\r\n<\/pre>\n<p><strong>Explanation<\/strong><\/p>\n<p>If the snake touches the fruit then the fruit will go at any random position and score will increase and the size of the snake will also increase<\/p>\n<h4>6. Snake and border collision<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">if snake.xcor()&gt;280 or snake.xcor()&lt; -300 or snake.ycor()&gt;240 or snake.ycor()&lt;-240:\r\n                time.sleep(1)\r\n                screen.clear()\r\n                screen.bgcolor('turquoise')\r\n                scoring.goto(0,0)\r\n                scoring.write(\"   GAME OVER \\n Your Score is {}\".format(score),align=\"center\",font=(\"Courier\",30,\"bold\"))\r\n<\/pre>\n<p><strong>Explanation<\/strong><\/p>\n<p>If the snake touches the border of the game then the game will over.<\/p>\n<p>screen.clear() will delete all the drawing of the turtle on the screen<\/p>\n<h4>7. When snake touch itself<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">for food in old_fruit:\r\n                if food.distance(snake) &lt; 20:\r\n                        time.sleep(1)\r\n                        screen.clear()\r\n                        screen.bgcolor('turquoise')\r\n                        scoring.goto(0,0)\r\n                        scoring.write(\"    GAME OVER \\n Your Score is {}\".format(score),align=\"center\",font=(\"Courier\",30,\"bold\"))\r\n<\/pre>\n<h3>Snake Game Program Output<\/h3>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-output.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-84844\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-output.png\" alt=\"snake game output\" width=\"1366\" height=\"726\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-output.png 1366w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-output-300x159.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-output-1024x544.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-output-150x80.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-output-768x408.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-output-720x383.png 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-output-520x276.png 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-output-320x170.png 320w\" sizes=\"auto, (max-width: 1366px) 100vw, 1366px\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>We successfully developed Snake game project in python. We learn how to used turtle modules and draw on the screen using a turtle. We also learn about random and time modules.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The snake game is a very popular and fun game. Every time the snake eats the fruit, its length grows longer that makes the game more difficult About Snake Game Python Project The objective&#46;&#46;&#46;<\/p>\n","protected":false},"author":7,"featured_media":84846,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[21082,21099,23615,23616],"class_list":["post-84748","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-python-project","tag-python-project-with-source-code","tag-snake-game-program","tag-snake-game-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Snake Game in Python - Develop Snake Game Program - DataFlair<\/title>\n<meta name=\"description\" content=\"Snake Game in Python - Learn how to develop Snake game program in Python with basic python modules like turtle, random, time.\" \/>\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\/snake-game-python-program\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Snake Game in Python - Develop Snake Game Program - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Snake Game in Python - Learn how to develop Snake game program in Python with basic python modules like turtle, random, time.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/snake-game-python-program\/\" \/>\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-12-21T07:13:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-01T06:42:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-in-python.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=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Snake Game in Python - Develop Snake Game Program - DataFlair","description":"Snake Game in Python - Learn how to develop Snake game program in Python with basic python modules like turtle, random, time.","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\/snake-game-python-program\/","og_locale":"en_US","og_type":"article","og_title":"Snake Game in Python - Develop Snake Game Program - DataFlair","og_description":"Snake Game in Python - Learn how to develop Snake game program in Python with basic python modules like turtle, random, time.","og_url":"https:\/\/data-flair.training\/blogs\/snake-game-python-program\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2020-12-21T07:13:57+00:00","article_modified_time":"2026-06-01T06:42:16+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-in-python.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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/snake-game-python-program\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/snake-game-python-program\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd"},"headline":"Snake Game in Python &#8211; Develop Snake Game Program","datePublished":"2020-12-21T07:13:57+00:00","dateModified":"2026-06-01T06:42:16+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/snake-game-python-program\/"},"wordCount":493,"commentCount":13,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/snake-game-python-program\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-in-python.jpg","keywords":["Python project","python project with source code","snake game program","snake game python"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/snake-game-python-program\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/snake-game-python-program\/","url":"https:\/\/data-flair.training\/blogs\/snake-game-python-program\/","name":"Snake Game in Python - Develop Snake Game Program - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/snake-game-python-program\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/snake-game-python-program\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-in-python.jpg","datePublished":"2020-12-21T07:13:57+00:00","dateModified":"2026-06-01T06:42:16+00:00","description":"Snake Game in Python - Learn how to develop Snake game program in Python with basic python modules like turtle, random, time.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/snake-game-python-program\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/snake-game-python-program\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/snake-game-python-program\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-in-python.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/12\/snake-game-in-python.jpg","width":1200,"height":628,"caption":"snake game in python"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/snake-game-python-program\/#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":"Snake Game in Python &#8211; Develop Snake Game Program"}]},{"@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\/beb0cab24b7aa54423a3b50e669a9dcd","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team specializes in creating clear, actionable content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Backed by industry expertise, we make learning easy and career-oriented for beginners and pros alike.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam3\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/84748","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=84748"}],"version-history":[{"count":5,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/84748\/revisions"}],"predecessor-version":[{"id":148594,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/84748\/revisions\/148594"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/84846"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=84748"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=84748"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=84748"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}