

{"id":107427,"date":"2022-02-25T09:00:16","date_gmt":"2022-02-25T03:30:16","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=107427"},"modified":"2026-06-01T12:53:45","modified_gmt":"2026-06-01T07:23:45","slug":"create-pong-game-using-python-project","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/","title":{"rendered":"Python Pong Game with Source Code"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:2561,&quot;href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1bbAtVCV-qAfTHQ8EZ76niGmBRSs1olE5\\\/view?usp=drive_link&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20260601074759\\\/https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1bbAtVCV-qAfTHQ8EZ76niGmBRSs1olE5\\\/view?usp=drive_link&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-06-02 07:04:58&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-02 07:04:58&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p>Have you ever tried playing the Pong game with your sibling or friend? If not, develop this fun pong game with us in Python and compete! So, without waiting let\u2019s get started with some introduction.<\/p>\n<h3>What is a Pong Game?<\/h3>\n<p>Pong is one of the famous computer games that resembles table tennis. In this game, the two players control the two paddles on either side of the game window.<\/p>\n<p>They move the paddles up or down to hit the moving ball. The score of a player increases either when he\/she hits the ball or when the opponent misses the hit.<\/p>\n<h3>Python Pong Game &#8211; Project Details<\/h3>\n<p>We will be using the turtle module to build this game in Python. In this game, we will be using the up, down, left, and right keys to move the left and the right paddles. Also, the speed of the ball increases, along with the score, as a player hits the ball to predefined speed level.<\/p>\n<p>Once a player misses the hit, the ball again starts from center towards the other player along with the increase in the score of the opponent.<\/p>\n<h3>Download the Source Code for Python Pong Game<\/h3>\n<p>Please download the source code for the Pong Game in Python using the link: <a href=\"https:\/\/drive.google.com\/file\/d\/1bbAtVCV-qAfTHQ8EZ76niGmBRSs1olE5\/view?usp=drive_link\"><strong>Pong Game Project<\/strong><\/a><\/p>\n<h3>Project Prerequisites<\/h3>\n<p>It is advised for the developer to have prior knowledge in Python and the Turtle module. Also, install the Turtle module using the below command, if not installed.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pip install turtle<\/pre>\n<h3>Steps to Build the Pong Game in Python<\/h3>\n<p>Done with the prerequisites, let\u2019s start discussing the steps to follow for developing this Pong game in Python.<br \/>\n1. First, we start by importing the modules.<br \/>\n2. Now we create the main screen.<br \/>\n3. Then we create the two paddles, ball, and score board and set their properties.<br \/>\n4. Next, we create the functions to move the paddles and match the keyboard buttons to the respective functions.<br \/>\n5. Finally, we write the game code, included in an infinite loop. In this we<br \/>\na. Move the ball<br \/>\nb. Check the collision of the ball with walls, i.e., the player missed the ball<br \/>\nc. Check the collision of ball with the paddle<br \/>\nd. Change the direction of the ball based on the above two situations<\/p>\n<h4>1. Importing the modules<\/h4>\n<p>The first step is to import the turtle module. We will use this module to build the whole game.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Import the turtle library\r\nimport turtle<\/pre>\n<h4>2. Creating main screen<\/h4>\n<p>Next, we create the main screen for the game titled &#8220;DataFlair Pong game&#8221;. And then we set its size.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Creating the screen with name and size\r\nscreen = turtle.Screen()\r\nscreen.title(\"DataFlair Pong game\")\r\nscreen.setup(width=1000 , height=600)<\/pre>\n<h4>3. Creating left and right paddles<\/h4>\n<p>The next step is to create the left and right paddles. The paddles have the following properties<br \/>\na. They are of square shape and are centered vertically on left or right ends.<br \/>\nb. Their speed is zero. They move only when keyboard keys are pressed.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Creating the left paddle\r\npaddle1 = turtle.Turtle()\r\n#Setting its speed as zero, it moves only when key is pressed\r\npaddle1.speed(0)\r\n#Setting shape, color, and size\r\npaddle1.shape(\"square\")\r\npaddle1.color(\"blue\")\r\npaddle1.shapesize(stretch_wid=6, stretch_len=2)\r\npaddle1.penup()\r\n#The paddle is left-centered initially\r\npaddle1.goto(-400, 0)<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Creating the right paddle\r\npaddle2 = turtle.Turtle()\r\n#Setting its speed as zero, it moves only when key is pressed\r\npaddle2.speed(0)\r\n#Setting shape, color, and size\r\npaddle2.shape(\"square\")\r\npaddle2.color(\"red\")\r\npaddle2.shapesize(stretch_wid=6, stretch_len=2)\r\npaddle2.penup()\r\n#The paddle is right-centered initially\r\npaddle2.goto(400, 0)<\/pre>\n<h4>4. Creating ball and setting its properties<\/h4>\n<p>Now it\u2019s the time to create the ball. It is in circle shape and initially located at the centre of the screen. Even it\u2019s speed is 0 and it moves based on the values dx and dy.<\/p>\n<p>Everytime the main game loop runs, the location of the ball is updated by dx and dy which gives the sense of motion.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># 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(\"green\")\r\nball.penup()\r\n#Ball starts from the centre of the screen\r\nball.goto(0, 0)\r\n#Setting dx and dy that decide the speed of the ball\r\nball.dx = 2\r\nball.dy = -2<\/pre>\n<h4>5. Initializing scores and creating scoreboard<\/h4>\n<p>Next, we initialize the scores to zero. And then create a scoreboard on top of the screen to show the current scores. In this, the write() function is used to show the text on the window.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Initializing the score of the two players\r\nplayer1 = 0\r\nplayer2 = 0\r\n\r\n# Displaying the score\r\nscore = turtle.Turtle()\r\nscore.speed(0)\r\nscore.penup()\r\n#Hiding the turtle to show text\r\nscore.hideturtle()\r\n#Locating the scoreboard on top of the screen\r\nscore.goto(0, 260)\r\n#Showing the score\r\nscore.write(\"Player1 : 0 Player2: 0\", align=\"center\", font=(\"Courier\", 20, \"bold\"))<\/pre>\n<h4>6. Writing functions to move paddles and matching with keys<\/h4>\n<p>Now we write the functions to move the paddles vertically. For giving the movement, we are changing the y-coordinate of the paddle by 15 units. They work in the following way:<\/p>\n<p>1. On clicking the left arrow button on the keyboard, movePad1Up() function executes and the left paddle moves up.<\/p>\n<p>2. On clicking the right arrow button on the keyboard, movePad1Down() function executes and the left paddle moves down.<\/p>\n<p>3. On clicking the up arrow button on the keyboard, movePad2Up() function executes and the right paddle moves up.<\/p>\n<p>4. On clicking the down arrow button on the keyboard, movePad2Down() function executes and the right paddle moves down.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Function to move the left paddle up\r\ndef movePad1Up():\r\n     y = paddle1.ycor() #Getting the current y-coordinated of the left paddle\r\n     y += 15\r\n     paddle1.sety(y) #Updating the y-coordinated of the paddle\r\n\r\n# Function to move the left paddle down\r\ndef movePad1Down():\r\n    y = paddle1.ycor()#Getting the current y-coordinated of the left paddle\r\n    y -= 15\r\n    paddle1.sety(y)#Updating the y-coordinated of the paddle\r\n\r\n# Function to move the right paddle up\r\ndef movePad2Up():\r\n    y = paddle2.ycor()#Getting the current y-coordinated of the right paddle\r\n    y += 15\r\n    paddle2.sety(y)#Updating the y-coordinated of the paddle\r\n\r\n# Function to move the right paddle down\r\ndef movePad2Down():\r\n   y = paddle2.ycor()#Getting the current y-coordinated of the right paddle\r\n   y -= 15\r\n   paddle2.sety(y)#Updating the y-coordinated of the paddle\r\n\r\n\r\n# Matching the Keyboard buttons to the above functions=\r\nscreen.listen()\r\nscreen.onkeypress(movePad1Up, \"Left\")\r\nscreen.onkeypress(movePad1Down, \"Right\")\r\nscreen.onkeypress(movePad2Up, \"Up\")\r\nscreen.onkeypress(movePad2Down, \"Down\")<\/pre>\n<h4>7. Writing the main game<\/h4>\n<p>At last, we are here to write the code for the main game. We write it in an infinite while loop that runs till the window is closed.<\/p>\n<p>a. First we update the screen.<\/p>\n<p>b. Then we move the ball by updating the coordinates dx and dy.<\/p>\n<p>c. We check if the ball hits top and bottom walls and bounce the ball by changing the sign of dy.<\/p>\n<p>d. We know that if any of the players miss the hit, then the ball touches the left or right walls. So, we check if the ball hits the left or right walls and<\/p>\n<ul>\n<li>Change the score of opponent and update score board<\/li>\n<li>Start the ball again from center of the screen in opposite direction<\/li>\n<\/ul>\n<p>e. Finally, we check if any of the paddles hit the ball and we<\/p>\n<ul>\n<li>Increase the score and update score board<\/li>\n<li>Increase the speed making sure it does not cross the limit 7<\/li>\n<li>Change sign of dx of ball, making it move towards the opposite player<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#The main game\r\nwhile True:\r\n  #Updating the screen every time with the new changes\r\n  screen.update()\r\n\r\n  #Moving the ball by updating the coordinates\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 top of the screen\r\n  if ball.ycor() &gt; 280:\r\n   ball.sety(280)\r\n   ball.dy *= -1 #Bouncing the ball\r\n\r\n  # Checking if ball hits the bottom of the screen\r\n  if ball.ycor() &lt; -280:\r\n   ball.sety(-280)\r\n   ball.dy *= -1#Bouncing the ball\r\n\r\n  #Checking if the ball hits the left or right walls, the player missed the hit\r\n  if ball.xcor() &gt; 480 or ball.xcor() &lt; -480:\r\n   if(ball.xcor() &lt;-480):\r\n    player2 += 1 #Increasing the score of right player if left player missed\r\n   else:\r\n    player1 += 1 #Increasing the score of left player if right player missed\r\n   #Starting ball again from center towards the opposite direction\r\n   ball.goto(0, 0)\r\n   ball.dx *= -1\r\n   ball.dy *= -1\r\n\r\n  #Updating score in the scoreboard\r\n  score.clear()\r\n  score.write(\"Player1 : {} Player2: {}\".format(player1, player2), align=\"center\", font=(\"Courier\", 20, \"bold\"))\r\n\r\n  #Checking if the left player hit the ball\r\n  if (ball.xcor() &lt; -360 and ball.xcor() &gt; -370) and (paddle1.ycor() + 50 &gt; ball.ycor() &gt; paddle1.ycor() - 50):\r\n   #Increasing score of left player and updating score board\r\n   player1 += 1\r\n   score.clear()\r\n   score.write(\"Player A: {} Player B: {}\".format(player1, player2), align=\"center\", font=(\"Courier\", 20, \"bold\"))\r\n   ball.setx(-360)\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.dx *=-1\r\n\r\n  #Checking if the right player hit the ball\r\n  if (ball.xcor() &gt; 360 and ball.xcor() &lt; 370) and (paddle2.ycor() + 50 &gt; ball.ycor() &gt; paddle2.ycor() - 50):\r\n  #Increasing score of right player and updating scoreboard\r\n  player2 += 1\r\n  score.clear()\r\n  score.write(\"Player A: {} Player B: {}\".format(player1, player2), align=\"center\", font=(\"Courier\", 20, \"bold\"))\r\n  ball.setx(360)\r\n\r\n  #Increasing speed of the ball with the limit 7\r\n  if(ball.dy&gt;0 and ball.dy&lt;7):#If dy is positive increasing dy\r\n   ball.dy+=1\r\n  elif(ball.dy&lt;0 and ball.dy&gt;-7):#else if dy is negative decreasing dy\r\n   ball.dy-=1\r\n\r\n  if(ball.dx&gt;0 and ball.dx&lt;7):#If dx is positive increasing dx\r\n   ball.dx+=1\r\n  elif(ball.dx&lt;0 and ball.dx&gt;-7): #else if dx is negative decreasing dx\r\n   ball.dx-=1\r\n\r\n  #Changing the direction of ball towards the left player\r\n   ball.dx*=-1<\/pre>\n<h3>Output of Python Pong Game<\/h3>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/02\/python-pong-game-output.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-107998\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/02\/python-pong-game-output.webp\" alt=\"python pong game output\" width=\"1246\" height=\"782\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>With this Python project, we have successfully built the Pong game. For this, we used the turtle module. We learned how to create shapes for blocks, balls, change the speed and update the screen. Hoping that you enjoyed developing this game!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever tried playing the Pong game with your sibling or friend? If not, develop this fun pong game with us in Python and compete! So, without waiting let\u2019s get started with some&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":107999,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[26636,25791,26522,26523,21082,22734],"class_list":["post-107427","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-pong-game","tag-python-game-project","tag-python-pong-game","tag-python-pong-game-project","tag-python-project","tag-python-project-for-beginners"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Pong Game with Source Code - DataFlair<\/title>\n<meta name=\"description\" content=\"Pong is one of the famous computer games that resembles table tennis. Develop Pong game using Python turtle 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\/create-pong-game-using-python-project\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Pong Game with Source Code - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Pong is one of the famous computer games that resembles table tennis. Develop Pong game using Python turtle module.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/\" \/>\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-02-25T03:30:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-01T07:23:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/02\/python-pong-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=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Pong Game with Source Code - DataFlair","description":"Pong is one of the famous computer games that resembles table tennis. Develop Pong game using Python turtle 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\/create-pong-game-using-python-project\/","og_locale":"en_US","og_type":"article","og_title":"Python Pong Game with Source Code - DataFlair","og_description":"Pong is one of the famous computer games that resembles table tennis. Develop Pong game using Python turtle module.","og_url":"https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2022-02-25T03:30:16+00:00","article_modified_time":"2026-06-01T07:23:45+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/02\/python-pong-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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Python Pong Game with Source Code","datePublished":"2022-02-25T03:30:16+00:00","dateModified":"2026-06-01T07:23:45+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/"},"wordCount":915,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/02\/python-pong-game-project.webp","keywords":["pong game","python game project","Python Pong game","Python pong game project","Python project","python project for beginners"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/","url":"https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/","name":"Python Pong Game with Source Code - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/02\/python-pong-game-project.webp","datePublished":"2022-02-25T03:30:16+00:00","dateModified":"2026-06-01T07:23:45+00:00","description":"Pong is one of the famous computer games that resembles table tennis. Develop Pong game using Python turtle module.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/02\/python-pong-game-project.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/02\/python-pong-game-project.webp","width":1200,"height":628,"caption":"python pong game project"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/create-pong-game-using-python-project\/#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 Pong Game 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\/107427","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=107427"}],"version-history":[{"count":5,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/107427\/revisions"}],"predecessor-version":[{"id":148639,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/107427\/revisions\/148639"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/107999"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=107427"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=107427"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=107427"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}