{"id":87668,"date":"2023-05-05T10:29:23","date_gmt":"2023-05-05T04:59:23","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=87668"},"modified":"2026-06-03T15:54:02","modified_gmt":"2026-06-03T10:24:02","slug":"python-rock-paper-and-scissor-game","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-game\/","title":{"rendered":"Python Rock, Paper, and Scissor Game &#8211; Where Coding Meets Fun!"},"content":{"rendered":"<p>The game of rock paper scissors is sometimes known as stone paper scissors. It is a two-person hand game in which each player can randomly make one of three shapes from their hand.<\/p>\n<h3>About Python Rock, Paper, and Scissor Game<\/h3>\n<p>We&#8217;re playing rock, paper, scissors with the computer. As a result, we have two players: the user and the computer. We can play it whenever and wherever we choose. In the Python programming language, we used Tkinter and a random module to create this game.<\/p>\n<p><strong>RULES:<\/strong> A player who chooses rock will win over another player who selects scissors but lose to the player who selects paper; a player who selects paper will lose to the player who selects scissors. If both players make the same choice, the game is a tie.<\/p>\n<h3>Prerequisites for Rock, Paper, and Scissor Game using Python<\/h3>\n<ul>\n<li>Basic knowledge of the Python programming language and how functions are defined in it.<\/li>\n<li>How the GUI window is made using Tkinter<\/li>\n<li>How to work with the Random library<\/li>\n<\/ul>\n<h3>Download Python Rock, Paper, and Scissor Game Project<\/h3>\n<p>Please download the source code of Python Rock, Paper, and Scissor Game Project from the following link: <strong><a href=\"https:\/\/drive.google.com\/file\/d\/1pOfo9HlfO20rtc_ISB8yPbN0M_-o6C0g\/view?usp=drive_link\">Python Rock, Paper, and Scissor Game Code<\/a><br \/>\n<\/strong><\/p>\n<h3>Steps to Create Rock, Paper, and Scissor Game using Python<\/h3>\n<p>Following are the steps for developing the Python Rock, Paper, and Scissor 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 Tkinter, we need to import the Tkinter module to make our GUI window. We are also going to import the random module.<\/p>\n<p><strong>Code<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># import library\r\nimport random\r\nfrom tkinter import *<\/pre>\n<h4>Step 2: Making a window for our project<\/h4>\n<p>This code sets the title of the window as <strong>\u2018TechVidvan\u2019,<\/strong> and sets its dimensions.<\/p>\n<p><strong>Code<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Set up the window\r\nroot = Tk()\r\nroot.geometry('600x600')\r\nroot.title('TechVidvan')\r\nroot.config(bg='#f7f1ea')\r\nglobal value<\/pre>\n<h4>Step 3: Functions<\/h4>\n<p>We make three functions (for rock, paper, and scissors) for each player and computer.<\/p>\n<ul>\n<li>rock() to display rock when selected by the player.<\/li>\n<li>paper() to display paper when selected by the player.<\/li>\n<li>scissor() to display scissor when selected by the player.<\/li>\n<\/ul>\n<p><strong>rock_1(), paper_1(),<\/strong> and <strong>scissor_1()<\/strong> to display the results by matching them with the value selected by the user.<\/p>\n<p><strong>def game():<\/strong> for matching the user-selected value with the random value generated by the computer using the <strong>random.randint(1, 3)<\/strong> function and displaying that random value by configuring the text of the label widget.<\/p>\n<p><strong>Code<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># function\r\ndef rock():\r\n   l1.config(text=\"Rock\")\r\n   global value\r\n   value = 1\r\n   game()\r\n\r\n\r\n\r\n\r\ndef paper():\r\n   l1.config(text=\"Paper\")\r\n   global value\r\n   value = 2\r\n   game()\r\ndef scissor():\r\n   l1.config(text=\"Scissor\")\r\n   global value\r\n   value = 3\r\n   game()\r\n\r\n\r\n\r\n\r\ndef rock_1():\r\n   if value == 1:\r\n       l0.config(text=\"Game Tie\")\r\n   elif value == 2:\r\n       l0.config(text=\"Player Win\")\r\n   elif value == 3:\r\n       l0.config(text=\"Computer Win\")\r\n\r\n\r\n\r\n\r\ndef paper_1():\r\n   if value == 1:\r\n       l0.config(text=\"Computer Win\")\r\n   elif value == 2:\r\n       l0.config(text=\"Game Tie\")\r\n   elif value == 3:\r\n       l0.config(text=\"Player Win\")\r\n\r\n\r\n\r\n\r\ndef scissor_1():\r\n   if value == 1:\r\n       l0.config(text=\"Player Win\")\r\n   elif value == 2:\r\n       l0.config(text=\"Computer Win\")\r\n   elif value == 3:\r\n       l0.config(text=\"Game Tie\")\r\n\r\n\r\n\r\n\r\ndef game():\r\n   computer_value = random.randint(1, 3)\r\n   if computer_value == 1:\r\n       l2.config(text=\"Rock\")\r\n       rock_1()\r\n\r\n\r\n   elif computer_value == 2:\r\n       l2.config(text=\"Paper\")\r\n       paper_1()\r\n\r\n\r\n   elif computer_value == 3:\r\n       l2.config(text=\"Scissor\")\r\n       scissor_1()\r\n<\/pre>\n<h4>Step 4: The main game loop<\/h4>\n<p>We give the heading to our window<strong> &#8220;Rock, Paper, and Scissors&#8221;<\/strong> and create two frames <strong>(frame and frame 2):<\/strong> one to display the value selected by the user and a random value generated by the computer, and the other to display options to the player from which he or she can select their value.<\/p>\n<p>Make a label to display the result of the game, which is in frame3.<\/p>\n<p><strong>Code<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">Label(root, text='Rock, Paper, and Scissors', font='arial 15 bold', bg='#f7f1ea', fg='#136577').pack()\r\nframe = Frame(root, bg='#679ba7')\r\nframe.pack(anchor=CENTER, pady=20)\r\nframe0 = Frame(frame, bg='#679ba7')\r\nframe0.pack(side=LEFT, pady=20)\r\nLabel(frame0, text=\"Player's move\", bg='#679ba7', font=('Arial', 15, 'bold')).pack(padx=20, pady=20)\r\nl1 = Label(frame0, bg='#f7f1ea', font=('Arial', 15, 'normal'), relief=\"ridge\")\r\nl1.pack(padx=20, pady=20)\r\n\r\n\r\nframe1 = Frame(frame, bg='#679ba7')\r\nframe1.pack(side=LEFT, pady=20)\r\nLabel(frame1, text=\"Computer's move\", bg='#679ba7', font=('Arial', 15, 'bold')).pack(padx=20, pady=20)\r\nl2 = Label(frame1, bg='#f7f1ea', font=('Arial', 15, 'normal'), relief=\"ridge\")\r\nl2.pack(padx=20, pady=20)\r\n\r\n\r\nframe2 = Frame(root, bg='#679ba7')\r\nframe2.pack(anchor=CENTER, pady=20)\r\nLabel(frame2, text='Select your move:', bg='#679ba7', font=('Arial', 15, 'bold')).pack()\r\nButton(frame2, text=\"Rock\", bg='#f7f1ea', font=('Arial', 15, 'normal'), command=rock, relief=\"ridge\").pack(side=LEFT, padx=20, pady=20)\r\nButton(frame2, text=\"Paper\", bg='#f7f1ea', font=('Arial', 15, 'normal'), command=paper, relief=\"ridge\").pack(side=LEFT, padx=20, pady=20)\r\nButton(frame2, text=\"Scissor\", bg='#f7f1ea', font=('Arial', 15, 'normal'), command=scissor, relief=\"ridge\").pack(side=LEFT, padx=20, pady=20)\r\n\r\n\r\nframe3 = Frame(root, bg='#679ba7')\r\nframe3.pack(anchor=CENTER, pady=20)\r\nl0 = Label(frame3, bg='#679ba7', font=('Arial', 15, 'bold'))\r\nl0.pack()\r\nroot.mainloop()\r\n<\/pre>\n<p><strong>Full Code<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># import library\r\nimport random\r\nfrom tkinter import *\r\n\r\n\r\nroot = Tk()\r\nroot.geometry('600x600')\r\nroot.title('TechVidvan')\r\nroot.config(bg='#f7f1ea')\r\nglobal value\r\n\r\n\r\n\r\n\r\n# function\r\ndef rock():\r\n   l1.config(text=\"Rock\")\r\n   global value\r\n   value = 1\r\n   game()\r\n\r\n\r\n\r\n\r\ndef paper():\r\n   l1.config(text=\"Paper\")\r\n   global value\r\n   value = 2\r\n   game()\r\n\r\n\r\n\r\n\r\ndef scissor():\r\n   l1.config(text=\"Scissor\")\r\n   global value\r\n   value = 3\r\n   game()\r\n\r\n\r\n\r\n\r\ndef rock_1():\r\n   if value == 1:\r\n       l0.config(text=\"Game Tie\")\r\n   elif value == 2:\r\n       l0.config(text=\"Player Win\")\r\n   elif value == 3:\r\n       l0.config(text=\"Computer Win\")\r\n\r\n\r\n\r\n\r\ndef paper_1():\r\n   if value == 1:\r\n       l0.config(text=\"Computer Win\")\r\n   elif value == 2:\r\n       l0.config(text=\"Game Tie\")\r\n   elif value == 3:\r\n       l0.config(text=\"Player Win\")\r\n\r\n\r\n\r\n\r\ndef scissor_1():\r\n   if value == 1:\r\n       l0.config(text=\"Player Win\")\r\n   elif value == 2:\r\n       l0.config(text=\"Computer Win\")\r\n   elif value == 3:\r\n       l0.config(text=\"Game Tie\")\r\n\r\n\r\n\r\n\r\ndef game():\r\n   computer_value = random.randint(1, 3)\r\n   if computer_value == 1:\r\n       l2.config(text=\"Rock\")\r\n       rock_1()\r\n\r\n\r\n   elif computer_value == 2:\r\n       l2.config(text=\"Paper\")\r\n       paper_1()\r\n\r\n\r\n   elif computer_value == 3:\r\n       l2.config(text=\"Scissor\")\r\n       scissor_1()\r\n\r\n\r\n\r\n\r\nLabel(root, text='Rock, Paper, and Scissors', font='arial 15 bold', bg='#f7f1ea', fg='#136577').pack()\r\nframe = Frame(root, bg='#679ba7')\r\nframe.pack(anchor=CENTER, pady=20)\r\nframe0 = Frame(frame, bg='#679ba7')\r\nframe0.pack(side=LEFT, pady=20)\r\nLabel(frame0, text=\"Player's move\", bg='#679ba7', font=('Arial', 15, 'bold')).pack(padx=20, pady=20)\r\nl1 = Label(frame0, bg='#f7f1ea', font=('Arial', 15, 'normal'), relief=\"ridge\")\r\nl1.pack(padx=20, pady=20)\r\n\r\n\r\nframe1 = Frame(frame, bg='#679ba7')\r\nframe1.pack(side=LEFT, pady=20)\r\nLabel(frame1, text=\"Computer's move\", bg='#679ba7', font=('Arial', 15, 'bold')).pack(padx=20, pady=20)\r\nl2 = Label(frame1, bg='#f7f1ea', font=('Arial', 15, 'normal'), relief=\"ridge\")\r\nl2.pack(padx=20, pady=20)\r\n\r\n\r\nframe2 = Frame(root, bg='#679ba7')\r\nframe2.pack(anchor=CENTER, pady=20)\r\nLabel(frame2, text='Select your move:', bg='#679ba7', font=('Arial', 15, 'bold')).pack()\r\nButton(frame2, text=\"Rock\", bg='#f7f1ea', font=('Arial', 15, 'normal'), command=rock, relief=\"ridge\").pack(side=LEFT, padx=20, pady=20)\r\nButton(frame2, text=\"Paper\", bg='#f7f1ea', font=('Arial', 15, 'normal'), command=paper, relief=\"ridge\").pack(side=LEFT, padx=20, pady=20)\r\nButton(frame2, text=\"Scissor\", bg='#f7f1ea', font=('Arial', 15, 'normal'), command=scissor, relief=\"ridge\").pack(side=LEFT, padx=20, pady=20)\r\n\r\n\r\nframe3 = Frame(root, bg='#679ba7')\r\nframe3.pack(anchor=CENTER, pady=20)\r\nl0 = Label(frame3, bg='#679ba7', font=('Arial', 15, 'bold'))\r\nl0.pack()\r\nroot.mainloop()<\/pre>\n<h3>Python Rock, Paper, and Scissor Game Output<\/h3>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/05\/rock-paper-scissors-game-output.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-87744 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/05\/rock-paper-scissors-game-output.webp\" alt=\"rock paper scissors game output\" width=\"1920\" height=\"1005\" \/><\/a><\/p>\n<h3><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/05\/rock-paper-scissors-output.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-87745 size-full\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/05\/rock-paper-scissors-output.webp\" alt=\"rock paper scissors output\" width=\"1920\" height=\"1014\" \/><\/a><\/h3>\n<h3>Summary<\/h3>\n<p>Using the Graphical user Interface (GUI), we successfully constructed a Python Rock Paper Scissors Game project. I hope you had fun building with us.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The game of rock paper scissors is sometimes known as stone paper scissors. It is a two-person hand game in which each player can randomly make one of three shapes from their hand. About&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":87872,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1053],"tags":[3249,1207,4968,3335,5004,5005,5006,5007],"class_list":["post-87668","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-python-project-for-beginners","tag-python-project-for-practice","tag-python-project-ideas","tag-python-projects","tag-python-rock-paper-scissor","tag-python-rock-paper-scissor-game","tag-python-rock-paper-scissor-game-project","tag-rock-paper-scissor-game-project"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Rock, Paper, and Scissor Game - Where Coding Meets Fun! - TechVidvan<\/title>\n<meta name=\"description\" content=\"Play the classic Python Rock, Paper, Scissor game! Code your way to victory and improve your programming skills.\" \/>\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-rock-paper-and-scissor-game\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Rock, Paper, and Scissor Game - Where Coding Meets Fun! - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Play the classic Python Rock, Paper, Scissor game! Code your way to victory and improve your programming skills.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-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-05T04:59:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-03T10:24:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/05\/rock-paper-scissors-.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=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Rock, Paper, and Scissor Game - Where Coding Meets Fun! - TechVidvan","description":"Play the classic Python Rock, Paper, Scissor game! Code your way to victory and improve your programming skills.","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-rock-paper-and-scissor-game\/","og_locale":"en_US","og_type":"article","og_title":"Python Rock, Paper, and Scissor Game - Where Coding Meets Fun! - TechVidvan","og_description":"Play the classic Python Rock, Paper, Scissor game! Code your way to victory and improve your programming skills.","og_url":"https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-game\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2023-05-05T04:59:23+00:00","article_modified_time":"2026-06-03T10:24:02+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/05\/rock-paper-scissors-.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":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-game\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-game\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Python Rock, Paper, and Scissor Game &#8211; Where Coding Meets Fun!","datePublished":"2023-05-05T04:59:23+00:00","dateModified":"2026-06-03T10:24:02+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-game\/"},"wordCount":511,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-game\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/05\/rock-paper-scissors-.webp","keywords":["python project for beginners","Python project for practice","python project ideas","Python Projects","python rock paper scissor","python rock paper scissor game","python rock paper scissor game project","rock paper scissor game project"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-game\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-game\/","url":"https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-game\/","name":"Python Rock, Paper, and Scissor Game - Where Coding Meets Fun! - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-game\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-game\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/05\/rock-paper-scissors-.webp","datePublished":"2023-05-05T04:59:23+00:00","dateModified":"2026-06-03T10:24:02+00:00","description":"Play the classic Python Rock, Paper, Scissor game! Code your way to victory and improve your programming skills.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-game\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-game\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-game\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/05\/rock-paper-scissors-.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2023\/05\/rock-paper-scissors-.webp","width":1200,"height":628,"caption":"rock paper scissors"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/python-rock-paper-and-scissor-game\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Python Rock, Paper, and Scissor Game &#8211; Where Coding Meets Fun!"}]},{"@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\/87668","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=87668"}],"version-history":[{"count":1,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/87668\/revisions"}],"predecessor-version":[{"id":448145,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/87668\/revisions\/448145"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/87872"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=87668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=87668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=87668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}