

{"id":108110,"date":"2022-03-16T09:00:22","date_gmt":"2022-03-16T03:30:22","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=108110"},"modified":"2026-06-01T13:52:57","modified_gmt":"2026-06-01T08:22:57","slug":"python-pinball-game-code","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/python-pinball-game-code\/","title":{"rendered":"Python Pinball Game Project with Source Code"},"content":{"rendered":"<p>Have you ever played the pinball game? Isn\u2019t it a challenging and occupying one! Wouldn\u2019t it be more fascinating to build such a game on your own? Yes! In this project, we will be developing the Pinball game using simple modules in Python.<\/p>\n<h3>What is Pinball?<\/h3>\n<p>A pinball game is a game in which we use a paddle to hit the bouncing ball. The score increases every time we hit the ball. And the game ends once we miss the hit.<\/p>\n<h3>Pinball Game using Python<\/h3>\n<p>We will be using the turtle and the random modules to build the project. The turtle module helps to build the game window and the components and controls the game. We use the random module to give a random position for the ball to start the game.<\/p>\n<h3>Download Python Pinball Project<\/h3>\n<p>Please download the source code for the python pinball game using the link: <a href=\"https:\/\/drive.google.com\/file\/d\/1KdzSTnoHG4-Ec2GN1ZgjukkcfcK7dVyP\/view?usp=drive_link\"><strong>Pinball Game Project Code<\/strong><\/a><\/p>\n<h3>Project Prerequisites<\/h3>\n<p>It is required to have prior knowledge of Python and the turtle module to build the project. You can download the turtle and the random module using the below commands.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pip install random2<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pip install turtle<\/pre>\n<h3>Project Structure<\/h3>\n<p>The following steps will be followed to develop python pinball game.<\/p>\n<p>1. Importing the required modules<\/p>\n<p>2. Create a screen for game<\/p>\n<p>3. Create the paddle<\/p>\n<p>4. Create the ball<\/p>\n<p>5. Create the scoreboard<\/p>\n<p>6. Write function to move the paddle<\/p>\n<p>7. The main game loop<\/p>\n<h3>1. Importing the required modules<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Importing the turtle and random library\r\nimport turtle\r\nfrom random import randint<\/pre>\n<h4>Code explanation:<\/h4>\n<p>a.\u00a0 In this step we import the turtle and the random modules.<\/p>\n<p>b.\u00a0 randint in the random module helps in getting a random integer in the given range.<\/p>\n<h3>2. Create a screen for game<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Creating the screen with name and size\r\nscreen = turtle.Screen()\r\nscreen.title(\"DataFlair Pinball game\")\r\nscreen.setup(width=1000 , height=600)<\/pre>\n<h4>Code explanation:<\/h4>\n<p>In this step, we create the Screen() object with title and size<\/p>\n<h3>3. Create the paddle<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Creating the paddle\r\npaddle = turtle.Turtle()\r\n#Setting its speed as zero, it moves only when key is pressed\r\npaddle.speed(0) \r\n#Setting shape, color, and size\r\npaddle.shape(\"square\")\r\npaddle.color(\"blue\")\r\npaddle.shapesize(stretch_wid=2, stretch_len=6) \r\npaddle.penup()\r\n#The paddle is left-centered initially \r\npaddle.goto(-400,-250)<\/pre>\n<h4>Code explanation:<\/h4>\n<p>Now, we create a square paddle that moves only when the keyboard is pressed.<br \/>\nInitially, it stays in the leftmost positions and moves in the respective direction when the player presses left\/right keyboard buttons.<\/p>\n<h3>4. Create the ball<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Creating the ball of circle shape\r\nball = turtle.Turtle()\r\n#Setting the speed of ball to 0, it moves based on the dx and dy values\r\nball.speed(0)\r\n#Setting shape, color, and size\r\nball.shape(\"circle\")\r\nball.color(\"red\")\r\nball.penup()\r\n#Ball starts from the random position from the top of the screen\r\nx=randint(-400,400)\r\nball.goto(x, 260)\r\n#Setting dx and dy that decide the speed of the ball\r\nball.dx = 2\r\nball.dy = -2<\/pre>\n<h4>Code explanation:<\/h4>\n<p>a.\u00a0 Next, we create the ball with a circle shape.<\/p>\n<p>b.\u00a0 It starts from the top of the screen from a random position along the horizontal axis.<\/p>\n<p>c.\u00a0 The variables dx and dy decide the speed of the ball, whose position gets updated by these values every time.<\/p>\n<h3>5. Create the scoreboard<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">score=0\r\n\r\n# Displaying the score\r\nscoreBoard = turtle.Turtle()\r\nscoreBoard.speed(0)\r\nscoreBoard.penup()\r\n#Hiding the turtle to show text\r\nscoreBoard.hideturtle()\r\n#Locating the score board on top of the screen\r\nscoreBoard.goto(0, 260)\r\n#Showing the score\r\nscoreBoard.write(\"Score : 0 \", align=\"center\", font=(\"Courier\", 20, \"bold\"))<\/pre>\n<h4>Code explanation:<\/h4>\n<p>a.\u00a0 Now we create the scoreboard with the score updating every time paddle hits the ball.<\/p>\n<p>b.\u00a0 This is located on top of the screen.<\/p>\n<h3>6. Write a function to move the paddle<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Functions to move the paddle left and right\r\ndef movePadRight():\r\n    x = paddle.xcor() #Getting the current x-coordinated of the paddle\r\n    x += 15 \r\n    paddle.setx(x) #Updating the x-coordinated of the paddle\r\n\r\n# Function to move the left paddle down\r\ndef movePadLeft():\r\n    x = paddle.xcor() #Getting the current x-coordinated of the paddle\r\n    x -= 15 \r\n    paddle.setx(x) #Updating the x-coordinated of the paddle\r\n\r\n#Mapping the functions to the keyboard buttons\r\nscreen.listen()\r\nscreen.onkeypress(movePadRight, \"Right\")\r\nscreen.onkeypress(movePadLeft, \"Left\")<\/pre>\n<h4>Code explanation:<\/h4>\n<p>a.\u00a0 Then we create the two functions movePadRight() and movePadLeft() that move the paddle to left and right respectively by 15 units every time the user presses the right\/left key.<br \/>\nb.\u00a0 The method onkeypress() maps the function to the respective keyboard buttons.<br \/>\nc.\u00a0 And the listen() function makes sure the keyboard inputs are considered.<\/p>\n<h3>7. The main game loop<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">while True:\r\n    #Updating the screen everytime with the new changes\r\n    screen.update()\r\n    \r\n    ball.setx(ball.xcor()+ball.dx)\r\n    ball.sety(ball.ycor()+ball.dy)\r\n\r\n    # Checking if ball hits the left, right, and top walls of the screen  \r\n    if ball.xcor() &gt; 480:\r\n        ball.setx(480)\r\n        ball.dx *= -1 #Bouncing the ball \r\n \r\n    if ball.xcor() &lt; -480:\r\n        ball.setx(-480)\r\n        ball.dx *= -1#Bouncing the ball \r\n    \r\n    if ball.ycor() &gt;280:\r\n        ball.setx(280)\r\n        ball.dy *= -1#Bouncing the ball \r\n    \r\n    #Checking if the ball hits bottom and ending the game\r\n    if ball.ycor() &lt; -260:\r\n        scoreBoard.clear()\r\n        scoreBoard1 = turtle.Turtle()\r\n        scoreBoard1.speed(0)\r\n        scoreBoard1.penup()\r\n        #Hiding the turtle to show text\r\n        scoreBoard1.hideturtle()\r\n        #Locating the score board on top of the screen\r\n        scoreBoard1.goto(0, 0)\r\n        scoreBoard1.color('black')\r\n        #Showing the score\r\n        scoreBoard1.write(\"Score : {} \".format(score),    align=\"center\", font=(\"Courier\", 30, \"bold\"))\r\n       break\r\n    \r\n    #Checking if paddle hits the ball, updating score, increasing speed and bouncing the ball\r\n    if (paddle.ycor() + 30 &gt; ball.ycor() &gt; paddle.ycor() - 30 and \r\n       paddle.xcor() + 50 &gt; ball.xcor() &gt; paddle.xcor() - 50 ):\r\n\r\n        #Increasing score of left player and updating score board\r\n        score += 1 \r\n        scoreBoard.clear()\r\n        scoreBoard.write(\"Score: {}\".format(score), align=\"center\", font=(\"Courier\", 20, \"bold\"))\r\n        \r\n        #Increasing speed of the ball with the limit 7\r\n        if(ball.dy&gt;0 and ball.dy&lt;5): #If dy is positive increasing dy\r\n            ball.dy+=0.5\r\n        elif(ball.dy&lt;0 and ball.dy&gt;-5): #else if dy is negative decreasing dy\r\n            ball.dy-=0.5\r\n            \r\n        if(ball.dx&gt;0 and ball.dx&lt;5):#If dx is positive increasing dx\r\n            ball.dx+=0.5\r\n        elif(ball.dx&lt;0 and ball.dx&gt;-5): #else if dx is negative decreasing dx\r\n            ball.dx-=0.5\r\n        \r\n        #Changing the direction of ball towards the right player\r\n        ball.dy *=-1 \r\nwhile (True):\r\n    screen.update()<\/pre>\n<h4>Code explanation:<\/h4>\n<p>a.\u00a0 We run the whole game in an infinite while loop.<\/p>\n<p>b.\u00a0 In this we first update the screen and set the ball coordinates<\/p>\n<p>c.\u00a0 Then we check if the ball hits the right, left or top edges of the screen and we bounce by reversing the sign of the dx or dy<\/p>\n<p>d.\u00a0 After this, we check if the ball hits the bottom edge of the screen, that is, the paddle missed the hit. If this condition is true, we stop the game and show the score.<\/p>\n<p>e.\u00a0 If not, we check if the paddle hits the screen, and we update the score on the scoreboard and bounce the ball.<\/p>\n<h3>Output of Python Pinball Game<\/h3>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/03\/python-pinball-game-output.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-108214\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/03\/python-pinball-game-output.webp\" alt=\"python pinball game output\" width=\"1920\" height=\"1029\" \/><\/a><\/p>\n<h3>Conclusion<\/h3>\n<p>Congratulations! You have successfully built the python pinball game. Hope you enjoyed building with DataFlair.<span hidden class=\"__iawmlf-post-loop-links\" data-iawmlf-links=\"[{&quot;id&quot;:2577,&quot;href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1KdzSTnoHG4-Ec2GN1ZgjukkcfcK7dVyP\\\/view?usp=drive_link&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20260601082311\\\/https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1KdzSTnoHG4-Ec2GN1ZgjukkcfcK7dVyP\\\/view?usp=drive_link&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-06-02 03:42:21&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-05 12:46:37&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-08 17:17:55&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-12 14:17:55&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-16 15:45:38&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-20 02:19:50&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-20 02:19:50&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever played the pinball game? Isn\u2019t it a challenging and occupying one! Wouldn\u2019t it be more fascinating to build such a game on your own? Yes! In this project, we will be&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":108216,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[25791,26690,26670,26671,21082,22734,23693],"class_list":["post-108110","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-python-game-project","tag-python-pinball","tag-python-pinball-game","tag-python-pinball-game-project-with-source-code","tag-python-project","tag-python-project-for-beginners","tag-python-project-with-code"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Pinball Game Project with Source Code - DataFlair<\/title>\n<meta name=\"description\" content=\"In Pinball game, we use a paddle to hit the bouncing ball. Score increases every time we hit the ball. Develop pinball game using Python.\" \/>\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-pinball-game-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Pinball Game Project with Source Code - DataFlair\" \/>\n<meta property=\"og:description\" content=\"In Pinball game, we use a paddle to hit the bouncing ball. Score increases every time we hit the ball. Develop pinball game using Python.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/python-pinball-game-code\/\" \/>\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=\"2022-03-16T03:30:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-01T08:22:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/03\/python-pinball-game-project.webp\" \/>\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\/webp\" \/>\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 Pinball Game Project with Source Code - DataFlair","description":"In Pinball game, we use a paddle to hit the bouncing ball. Score increases every time we hit the ball. Develop pinball game using Python.","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-pinball-game-code\/","og_locale":"en_US","og_type":"article","og_title":"Python Pinball Game Project with Source Code - DataFlair","og_description":"In Pinball game, we use a paddle to hit the bouncing ball. Score increases every time we hit the ball. Develop pinball game using Python.","og_url":"https:\/\/data-flair.training\/blogs\/python-pinball-game-code\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2022-03-16T03:30:22+00:00","article_modified_time":"2026-06-01T08:22:57+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/03\/python-pinball-game-project.webp","type":"image\/webp"}],"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-pinball-game-code\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/python-pinball-game-code\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Python Pinball Game Project with Source Code","datePublished":"2022-03-16T03:30:22+00:00","dateModified":"2026-06-01T08:22:57+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-pinball-game-code\/"},"wordCount":612,"commentCount":1,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-pinball-game-code\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/03\/python-pinball-game-project.webp","keywords":["python game project","python pinball","Python Pinball Game","Python Pinball Game project with source code","Python project","python project for beginners","python project with code"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/python-pinball-game-code\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/python-pinball-game-code\/","url":"https:\/\/data-flair.training\/blogs\/python-pinball-game-code\/","name":"Python Pinball Game Project with Source Code - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-pinball-game-code\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-pinball-game-code\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/03\/python-pinball-game-project.webp","datePublished":"2022-03-16T03:30:22+00:00","dateModified":"2026-06-01T08:22:57+00:00","description":"In Pinball game, we use a paddle to hit the bouncing ball. Score increases every time we hit the ball. Develop pinball game using Python.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/python-pinball-game-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/python-pinball-game-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/python-pinball-game-code\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/03\/python-pinball-game-project.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/03\/python-pinball-game-project.webp","width":1200,"height":628},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/python-pinball-game-code\/#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 Pinball Game Project with Source Code"}]},{"@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\/108110","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=108110"}],"version-history":[{"count":6,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/108110\/revisions"}],"predecessor-version":[{"id":148659,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/108110\/revisions\/148659"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/108216"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=108110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=108110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=108110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}