{"id":87713,"date":"2023-05-11T09:52:16","date_gmt":"2023-05-11T04:22:16","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=87713"},"modified":"2026-06-03T15:51:08","modified_gmt":"2026-06-03T10:21:08","slug":"python-pong-game","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/python-pong-game\/","title":{"rendered":"Python Pong Game &#8211; A Game That Will Test Your Skills!"},"content":{"rendered":"<p>Pong is a game that is played by two players who control the two paddles on either side of the game window. The paddles are x1x1 moved up and down to hit the moving ball. A player&#8217;s score rises when he or she hits the ball or when the opponent misses the hit.<\/p>\n<h3>About Python Pong Game<\/h3>\n<p>We will work with the Turtle module to create this Python game. To move the left and right paddles in this game, we will use the up, down, s, and w keys, respectively. When a player misses a hit, the ball restarts from the center toward the other player.<\/p>\n<h3>Prerequisites for Pong Game using Python<\/h3>\n<ul>\n<li>Fundamental knowledge of the Python programming language and how to make functions in it.<\/li>\n<li>How the game window is made using Turtle<\/li>\n<\/ul>\n<h3>Download Python Pong Game Project<\/h3>\n<p>Please download the source code of Python Pong Game Project from the following link: <a href=\"https:\/\/drive.google.com\/file\/d\/1eRRBzG5ARU4Sw6PcuJTtq89NjZrb4aeM\/view?usp=drive_link\"><strong>Python Pong Game Project Code<\/strong><\/a><\/p>\n<h3>Steps to Create Pong Game Project Using Python<\/h3>\n<p>Following are the steps for developing the Python Pong Game Project:<\/p>\n<p><strong>Step 1:<\/strong> Importing the necessary modules<\/p>\n<p><strong> Step 2:<\/strong> Making a window for our project<\/p>\n<p><strong> Step 3:<\/strong> Functions<\/p>\n<p><strong>Step 4:<\/strong> The main game loop<\/p>\n<h4>Step 1: Importing the necessary modules<\/h4>\n<p>To use Python Tkinter, we need to import the turtle module to make our Pong game.<\/p>\n<p><strong>Code<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#import packages\r\nimport turtle\r\n<\/pre>\n<h4>Step 2: Making a window for our project<\/h4>\n<ul>\n<li>The title of our window &#8211;<strong>\u2018TechVidvan Pong Game\u2019<\/strong>, and sets its dimensions using the <strong>.setup()<\/strong> function.<\/li>\n<li>The ball is then made into a circle. It begins at the center of the screen and moves along the horizontal axis. The variables dx and dy determine the speed of the ball, whose position is constantly updated by these values.<\/li>\n<li>Now we&#8217;ll make two square paddles that move just when we press the keyboard. When the player pushes the left and right keyboard buttons for Player 2 and the w\/s keyboard buttons for Player 1, it goes in the respective direction.<\/li>\n<li>Now we make the scoreboard, with the score changing every time each player strikes the ball with the paddle. This is at the top of the screen.<\/li>\n<\/ul>\n<p><strong>Code<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># set up the screen\r\nroot = turtle.Screen()\r\nroot.title(\"TechVidvan Pong Game\")\r\nroot.bgcolor('#f7f1ea')\r\nroot.setup(width=1000, height=400)\r\n\r\n\r\n# create the ball, giving its shape, color, and size\r\nball = turtle.Turtle()\r\nball.speed(30)\r\nball.shape(\"circle\")\r\nball.color('#89bfbd')\r\nball.penup()\r\nball.goto(0, 0)\r\nball.dx = 5\r\nball.dy = -5\r\n\r\n\r\n# create the paddles, giving their shapes, colors, and sizes\r\nleft_pad = turtle.Turtle()\r\nleft_pad.speed(0)\r\nleft_pad.shape(\"square\")\r\nleft_pad.color(\"#679ba7\")\r\nleft_pad.shapesize(stretch_wid=6, stretch_len=2)\r\nleft_pad.penup()\r\nleft_pad.goto(-450, 0)\r\n\r\n\r\nright_pad = turtle.Turtle()\r\nright_pad.speed(0)\r\nright_pad.shape(\"square\")\r\nright_pad.color(\"#679ba7\")\r\nright_pad.shapesize(stretch_wid=6, stretch_len=2)\r\nright_pad.penup()\r\nright_pad.goto(450, 0)\r\n\r\n\r\n# score\r\nscore_l = 0\r\nscore_r = 0\r\n\r\n\r\n# create the score board\r\npen = turtle.Turtle()\r\npen.speed(0)\r\npen.color(\"black\")\r\npen.penup()\r\npen.hideturtle()\r\npen.goto(0, 170)\r\npen.write(\"Player A: {}  Player B: {}\".format(score_l, score_r), align=\"center\", font=(\"Arial\", 16, \"bold\"))<\/pre>\n<h4>Step 3: Functions<\/h4>\n<p>Then we write the functions <strong>left_up()<\/strong> and<strong> left_down()<\/strong>, which move the left paddle up and down by 22 units each time the user pushes the W or S key, and the functions <strong>right_up()<\/strong> and<strong> right_down(),<\/strong> which move the right paddle up and down by 22 units each time the user pushes the up or down key.<\/p>\n<p>The <strong>listen()<\/strong> function ensures that keyboard inputs are taken into account.<\/p>\n<p><strong>Code<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># define the paddle functions\r\ndef left_up():\r\n   y = left_pad.ycor()\r\n   y += 22\r\n   left_pad.sety(y)\r\n\r\n\r\n\r\n\r\ndef left_down():\r\n   y = left_pad.ycor()\r\n   y -= 22\r\n   left_pad.sety(y)\r\n\r\n\r\n\r\n\r\ndef right_up():\r\n   y = right_pad.ycor()\r\n   y += 22\r\n   right_pad.sety(y)\r\n\r\n\r\n\r\n\r\ndef right_down():\r\n   y = right_pad.ycor()\r\n   y -= 22\r\n   right_pad.sety(y)\r\n\r\n\r\n\r\n\r\n# keyboard bindings\r\nroot.listen()\r\nroot.onkeypress(left_up, \"w\")\r\nroot.onkeypress(left_down, \"s\")\r\nroot.onkeypress(right_up, \"Up\")\r\nroot.onkeypress(right_down, \"Down\")<\/pre>\n<h4>Step 4: The main game loop<\/h4>\n<p>The entire game is run in an unending loop. <strong>(while True:)<\/strong><\/p>\n<p>We begin by updating the screen and setting the ball&#8217;s coordinates.We do certain checks to ensure that the ball strikes the screen&#8217;s bottom or top edges, and we invert the sign of the dx or dy.<strong> (ball.dy *= -1)<\/strong><\/p>\n<p>Following that, we check to see if the ball strikes the left or right border of the screen, indicating that the paddles missed the hit. If this condition is met, we pause the game and display the score. <strong>(pen.write)<\/strong><\/p>\n<p><strong>Code<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># main game loop\r\nwhile True:\r\n   root.update()\r\n\r\n\r\n   # move the ball\r\n   ball.setx(ball.xcor() + ball.dx)\r\n   ball.sety(ball.ycor() + ball.dy)\r\n\r\n\r\n   # check for collisions with the walls\r\n   if ball.ycor() &gt; 190 or ball.ycor() &lt; -190:\r\n       ball.dy *= -1\r\n\r\n\r\n   # check for collisions with the paddles\r\n   if 430 &lt; ball.xcor() &lt; 440 and right_pad.ycor() + 60 &gt; ball.ycor() &gt; right_pad.ycor() - 60:\r\n       ball.dx *= -1\r\n       score_r += 1\r\n       pen.clear()\r\n       pen.write(\"Player1: {}  Player2: {}\".format(score_l, score_r), align=\"center\", font=(\"Arial\", 15, \"bold\"))\r\n    \r\n\r\n\r\n   if -430 &gt; ball.xcor() &gt; -440 and left_pad.ycor() + 60 &gt; ball.ycor() &gt; left_pad.ycor() - 60:\r\n       ball.dx *= -1\r\n       score_l += 1\r\n       pen.clear()\r\n       pen.write(\"Player1: {}  Player2: {}\".format(score_l, score_r), align=\"center\", font=(\"Arial\", 15, \"bold\"))\r\n\r\n\r\n   # Checking if the players missed the hit\r\n   if ball.xcor() &gt; 480 or ball.xcor() &lt; -480:\r\n       if ball.xcor() &lt; -480:\r\n           score_r += 1  # Increasing the score of the right player\r\n       else:\r\n           score_l += 1  # Increasing the score of the left player\r\n       ball.goto(0, 0)\r\n       ball.dx *= -1\r\n       ball.dy *= -1\r\n       # Updating the score\r\n       pen.clear()\r\n       pen.write(\"Player1 : {} Player2: {}\".format(score_l, score_r), align=\"center\", font=(\"Arial\", 15, \"bold\"))<\/pre>\n<p><strong>Full Code<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import turtle\r\n\r\n\r\n# set up the screen\r\nroot = turtle.Screen()\r\nroot.title(\"TechVidvan Pong Game\")\r\nroot.bgcolor('#f7f1ea')\r\nroot.setup(width=1000, height=400)\r\n\r\n\r\n# create the ball, giving its shape, color, and size\r\nball = turtle.Turtle()\r\nball.speed(30)\r\nball.shape(\"circle\")\r\nball.color('#89bfbd')\r\nball.penup()\r\nball.goto(0, 0)\r\nball.dx = 5\r\nball.dy = -5\r\n\r\n\r\n# create the paddles, giving their shapes, colors, and sizes\r\nleft_pad = turtle.Turtle()\r\nleft_pad.speed(0)\r\nleft_pad.shape(\"square\")\r\nleft_pad.color(\"#679ba7\")\r\nleft_pad.shapesize(stretch_wid=6, stretch_len=2)\r\nleft_pad.penup()\r\nleft_pad.goto(-450, 0)\r\n\r\n\r\nright_pad = turtle.Turtle()\r\nright_pad.speed(0)\r\nright_pad.shape(\"square\")\r\nright_pad.color(\"#679ba7\")\r\nright_pad.shapesize(stretch_wid=6, stretch_len=2)\r\nright_pad.penup()\r\nright_pad.goto(450, 0)\r\n\r\n\r\n# score\r\nscore_l = 0\r\nscore_r = 0\r\n\r\n\r\n# create the score board\r\npen = turtle.Turtle()\r\npen.speed(0)\r\npen.color(\"black\")\r\npen.penup()\r\npen.hideturtle()\r\npen.goto(0, 170)\r\npen.write(\"Player A: {}  Player B: {}\".format(score_l, score_r), align=\"center\", font=(\"Arial\", 16, \"bold\"))\r\n\r\n\r\n\r\n\r\n# define the paddle functions\r\ndef left_up():\r\n   y = left_pad.ycor()\r\n   y += 22\r\n   left_pad.sety(y)\r\n\r\n\r\n\r\n\r\ndef left_down():\r\n   y = left_pad.ycor()\r\n   y -= 22\r\n   left_pad.sety(y)\r\n\r\n\r\n\r\n\r\ndef right_up():\r\n   y = right_pad.ycor()\r\n   y += 22\r\n   right_pad.sety(y)\r\n\r\n\r\n\r\n\r\ndef right_down():\r\n   y = right_pad.ycor()\r\n   y -= 22\r\n   right_pad.sety(y)\r\n\r\n\r\n\r\n\r\n# keyboard bindings\r\nroot.listen()\r\nroot.onkeypress(left_up, \"w\")\r\nroot.onkeypress(left_down, \"s\")\r\nroot.onkeypress(right_up, \"Up\")\r\nroot.onkeypress(right_down, \"Down\")\r\n\r\n\r\n# main game loop\r\nwhile True:\r\n   root.update()\r\n\r\n\r\n   # move the ball\r\n   ball.setx(ball.xcor() + ball.dx)\r\n   ball.sety(ball.ycor() + ball.dy)\r\n\r\n\r\n   # check for collisions with the walls\r\n   if ball.ycor() &gt; 190 or ball.ycor() &lt; -190:\r\n       ball.dy *= -1\r\n\r\n\r\n   # check for collisions with the paddles\r\n   if 435 &lt; ball.xcor() &lt; 440 and right_pad.ycor() + 60 &gt; ball.ycor() &gt; right_pad.ycor() - 60:\r\n       ball.dx *= -1\r\n       score_r += 1\r\n       pen.clear()\r\n       pen.write(\"Player1: {}  Player2: {}\".format(score_l, score_r), align=\"center\", font=(\"Arial\", 15, \"bold\"))\r\n       ball.setx(360)\r\n\r\n\r\n   if -435 &gt; ball.xcor() &gt; -440 and left_pad.ycor() + 60 &gt; ball.ycor() &gt; left_pad.ycor() - 60:\r\n       ball.dx *= -1\r\n       score_l += 1\r\n       pen.clear()\r\n       pen.write(\"Player1: {}  Player2: {}\".format(score_l, score_r), align=\"center\", font=(\"Arial\", 15, \"bold\"))\r\n       ball.setx(-360)\r\n\r\n\r\n   # Checking if the players missed the hit\r\n   if ball.xcor() &gt; 480 or ball.xcor() &lt; -480:\r\n       if ball.xcor() &lt; -480:\r\n           score_r += 1  # Increasing the score of the right player\r\n       else:\r\n           score_l += 1  # Increasing the score of the left player\r\n       ball.goto(0, 0)\r\n       ball.dx *= -1\r\n       ball.dy *= -1\r\n       # Updating the score\r\n       pen.clear()\r\n       pen.write(\"Player1 : {} Player2: {}\".format(score_l, score_r), align=\"center\", font=(\"Arial\", 15, \"bold\"))<\/pre>\n<h3>Python Pong Game Output<\/h3>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/05\/pong-game-output.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-87740 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/05\/pong-game-output.webp\" alt=\"pong game output\" width=\"1920\" height=\"1035\" \/><\/a><\/p>\n<h3><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/05\/python-pong-game-output.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-87741 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/05\/python-pong-game-output.webp\" alt=\"python pong game output\" width=\"1920\" height=\"1011\" \/><\/a><\/h3>\n<h3>Summary<\/h3>\n<p>We were able to complete the Pong game with this Python project. We utilized the turtle module for this. We learned how to make balls and blocks, as well as how to move them if they hit the surface. I hope you learned a lot from us.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pong is a game that is played by two players who control the two paddles on either side of the game window. The paddles are x1x1 moved up and down to hit the moving&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":87870,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1053],"tags":[3334,5011,5012,5013,5014,5015,3249,3335],"class_list":["post-87713","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-learn-python","tag-pong-game","tag-pong-game-project","tag-python-poject-for-practice","tag-python-pong-game","tag-python-pong-game-project","tag-python-project-for-beginners","tag-python-projects"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Pong Game - A Game That Will Test Your Skills! - TechVidvan<\/title>\n<meta name=\"description\" content=\"Python Pong is a challenging and fun arcade game built using Python programming language. Experience the thrill of classic gameplay.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/python-pong-game\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Pong Game - A Game That Will Test Your Skills! - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Python Pong is a challenging and fun arcade game built using Python programming language. Experience the thrill of classic gameplay.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/python-pong-game\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-11T04:22:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-03T10:21:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/05\/pong-game-1.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=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan 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 Pong Game - A Game That Will Test Your Skills! - TechVidvan","description":"Python Pong is a challenging and fun arcade game built using Python programming language. Experience the thrill of classic gameplay.","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:\/\/techvidvan.com\/tutorials\/python-pong-game\/","og_locale":"en_US","og_type":"article","og_title":"Python Pong Game - A Game That Will Test Your Skills! - TechVidvan","og_description":"Python Pong is a challenging and fun arcade game built using Python programming language. Experience the thrill of classic gameplay.","og_url":"https:\/\/techvidvan.com\/tutorials\/python-pong-game\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2023-05-11T04:22:16+00:00","article_modified_time":"2026-06-03T10:21:08+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/05\/pong-game-1.webp","type":"image\/webp"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/python-pong-game\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-pong-game\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Python Pong Game &#8211; A Game That Will Test Your Skills!","datePublished":"2023-05-11T04:22:16+00:00","dateModified":"2026-06-03T10:21:08+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-pong-game\/"},"wordCount":590,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-pong-game\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/05\/pong-game-1.webp","keywords":["Learn Python","pong game","pong game project","python poject for practice","python pong game","python pong game project","python project for beginners","Python Projects"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/python-pong-game\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/python-pong-game\/","url":"https:\/\/techvidvan.com\/tutorials\/python-pong-game\/","name":"Python Pong Game - A Game That Will Test Your Skills! - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-pong-game\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-pong-game\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/05\/pong-game-1.webp","datePublished":"2023-05-11T04:22:16+00:00","dateModified":"2026-06-03T10:21:08+00:00","description":"Python Pong is a challenging and fun arcade game built using Python programming language. Experience the thrill of classic gameplay.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-pong-game\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/python-pong-game\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/python-pong-game\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/05\/pong-game-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/05\/pong-game-1.webp","width":1200,"height":628,"caption":"pong game"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/python-pong-game\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Python Pong Game &#8211; A Game That Will Test Your Skills!"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/87713","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=87713"}],"version-history":[{"count":1,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/87713\/revisions"}],"predecessor-version":[{"id":448138,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/87713\/revisions\/448138"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/87870"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=87713"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=87713"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=87713"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}