{"id":85661,"date":"2021-12-04T09:00:46","date_gmt":"2021-12-04T03:30:46","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=85661"},"modified":"2026-06-03T15:48:44","modified_gmt":"2026-06-03T10:18:44","slug":"python-number-guessing","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/","title":{"rendered":"Number Guessing Game in Python with Source Code"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Guessing a number is a fun game that involves us to relate the clues the system gives us. This fun, yet provoking game is a simple way to keep our mind stimulated.<\/span><\/p>\n<h3>Python Number Guessing Game Project:<\/h3>\n<p><span style=\"font-weight: 400;\">We will create a simple number guessing game using python and display the scores the player gets if he\/she wins. This project will serve as an introduction to functions and creating GUI using Tkinter.<\/span><\/p>\n<h3>Project Prerequisites:<\/h3>\n<p><span style=\"font-weight: 400;\">The project makes use of Tkinter for GUI, random module for generating random targets and clues. Since we use Tkinter which is a built-in GUI library in python, we check it by importing it<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">python\r\nimport tkinter<\/pre>\n<p><span style=\"font-weight: 400;\">If the library is installed, it will not show an error. If you face any error whilst importing Tkinter, refer <\/span><a href=\"https:\/\/tkdocs.com\/tutorial\/install.html\"><span style=\"font-weight: 400;\">Tkinter Installation<\/span><\/a><\/p>\n<h3>Download Number Guessing Game Code:<\/h3>\n<p><span style=\"font-weight: 400;\">You can download the source code for the Number Guessing Game from the following link: <\/span><a href=\"https:\/\/drive.google.com\/file\/d\/17QB1TEtP9k4BmXT1O4AUH2UiPtjeWj0P\/view?usp=drive_link\"><strong>Number Guessing Game<\/strong><\/a><\/p>\n<h3>Project File Structure:<\/h3>\n<p><span style=\"font-weight: 400;\">There are many GUI libraries supported by python such as PyQT5, Kivy, Pyside2 etc. Tkinter is widely used by many developers and is easy for beginners to practise.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Let\u2019s have a look at the steps to build the project:<\/span><\/p>\n<ol>\n<li><span style=\"font-weight: 400;\">Importing modules: tkinter, random and declaring variables<\/span><\/li>\n<li>Declaring clue functions<\/li>\n<li>Declaring and defining guess and target number functions<\/li>\n<li>Creating the user input interface<\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">Feel free to play with the values and change your input methods.\u00a0<\/span><\/p>\n<h4>1. Importing necessary modules for Python Number Guessing Game<b>:<\/b><\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#TechVidvan's Number Guessing Game\r\n#Import modules\r\nimport random\r\nfrom tkinter import *\r\nfrom tkinter import messagebox\r\n \r\n#Declare and initialise variables\r\ntarget = 0\r\nscore = 10\r\nguess=0\r\n<\/pre>\n<p><b>Code Explanation:<\/b><\/p>\n<ul>\n<li><b>import random: <\/b><span style=\"font-weight: 400;\">\u00a0Random library generates a random number or a random subset in a string. We use randint function of random<\/span><\/li>\n<li><b>from tkinter import *:\u00a0 <\/b><span style=\"font-weight: 400;\">To create the user interface, we import Tkinter. Tkinter contains provisions to build the interface with widgets such as buttons, input entry fields etc<\/span><\/li>\n<li><b>from tkinter import messagebox: <\/b><span style=\"font-weight: 400;\">To display the user with prompts, we use messagebox. Using this module, we can show warnings, errors, information etc to the user\u00a0<\/span><\/li>\n<li><b>Target, score, guess: <\/b><span style=\"font-weight: 400;\">Declare the variables to set the target value and guess from the user in the forthcoming functions. Score is set to 10 which also implies the user gets 10 chances before he loses<\/span><\/li>\n<\/ul>\n<h4>2. Declaring clue functions:<br \/>\n<b><\/b><\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#Define the clue functions\r\ndef add():\r\n   return \"The sum of target and guess is \" + str(guess+target)\r\n \r\ndef sub():\r\n   return \"The difference of target and guess is \" + str(target-guess)\r\n \r\ndef multiplication():\r\n   return \"The product of target and guess is \" + str(guess*target)\r\n \r\ndef division():\r\n   return \"The division of target by guess is \" + str(target\/guess)\r\n \r\ndef greater_lesser():\r\n   if target &lt; guess:\r\n       return 'Target is less than the guess'\r\n   elif target &gt; guess:\r\n       return 'Target is greater than the guess'<\/pre>\n<p><b>Code explanation:\u00a0<\/b><\/p>\n<ul>\n<li><b>add(): <\/b><span style=\"font-weight: 400;\">Returns the sum of the guess and the target<\/span><\/li>\n<li><b>sub(): <\/b><span style=\"font-weight: 400;\">Returns the difference of the guess and the target<\/span><\/li>\n<li><b>multiplication(): <\/b><span style=\"font-weight: 400;\">Returns the product of the guess and the target<\/span><\/li>\n<li><b>division(): <\/b><span style=\"font-weight: 400;\">Returns the division of target by guess<\/span><\/li>\n<li><b>greater_lesser(): <\/b><span style=\"font-weight: 400;\">Tells if the target is less than the guess and vice versa<\/span><\/li>\n<\/ul>\n<h4>3. Declaring and defining guess and target number functions:<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#Create the random clue generator\r\ndef clues():\r\n   switcher = {\r\n       0: add(),\r\n       1: sub(),\r\n       2: multiplication(),\r\n       3: division(),\r\n       4: greater_lesser()\r\n       }\r\n   return switcher.get(random.randint(0,4))<\/pre>\n<p><b>Code explanation:\u00a0<\/b><\/p>\n<ul>\n<li><b>clues(): <\/b><span style=\"font-weight: 400;\">Declare the function clues\u00a0<\/span><\/li>\n<li><b>switcher: <\/b><span style=\"font-weight: 400;\">Define a dictionary switcher to simulate switch case where the values of the keys represent the clue functions<\/span><\/li>\n<li><b>return switcher.get(random.randint(0,4)): <\/b><span style=\"font-weight: 400;\">Take a random key from the switcher to generate a random clue using get() function<\/span><\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#Generate the target value\r\ndef generate_target_number():  \r\n   global target\r\n   target = random.randint(1,10)\r\n   messagebox.showinfo(message=\"Random Number Generated; Start Guessing!! STARTING SCORE=10\")\r\n   #Disable the random number button until game ends   \r\n   random_number_button['state'] = DISABLED \r\n   #Activate the guessing button\r\n   guess_button['state'] = NORMAL<\/pre>\n<p><b>Code explanation:\u00a0<\/b><\/p>\n<ul>\n<li><b>generate_target_number(): <\/b><span style=\"font-weight: 400;\">Declare the function generate_target_number\u00a0<\/span><\/li>\n<li><b>global target: <\/b><span style=\"font-weight: 400;\">Make the variable global to preserve its value across other functions, ie not limiting to local scope (within the function)<\/span><\/li>\n<li><b>target = random.randint(1,10): <\/b><span style=\"font-weight: 400;\">Using randint, assign a random integer to target. The parameters are the lower and upper range, both inclusive<\/span><\/li>\n<li><b>messagebox.showinfo(): <\/b><span style=\"font-weight: 400;\">To display the user with a prompt after generating the target value, we display a prompt using messagebox. Since this is an information, we use showinfo of messagebox with the message parameter set to a message.<\/span><\/li>\n<li><b>random_number_button[&#8216;state&#8217;], guess_button[&#8216;state&#8217;]: <\/b><span style=\"font-weight: 400;\">After getting a target, we disable the random number button so the user plays a fair game without changing the target. Enable guess button to allow the user to guess the number after getting a target. Disable turns off the button and Normal allows to click the button. The state of the button attribute is altered to achieve this.<\/span><\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#Guess and score by reading user input\r\ndef guess_and_score():\r\n   #Make variables global for access across functions\r\n   global score\r\n   global guess\r\n   try:\r\n       guess =0\r\n       #Read if user submitted an input\r\n       guess = int(guess_entry.get())\r\n   except:\r\n       messagebox.showerror(message=\"Enter a number to guess and play\")\r\n       return\r\n   #If target and guess are the same, print score and prompt to user\r\n   if guess == target:\r\n       messagebox.showinfo(message=\"Congratulations!!! You guessed the number correct. Your score is \"+str(score))\r\n       #Enable random number button to play a new game and disable guessing button\r\n       random_number_button['state'] = NORMAL\r\n       guess_button['state'] = DISABLED \r\n       return\r\n   #If the user runs out of guesses\r\n   elif score == 0:\r\n       messagebox.showwarning(message=\"Out of Guesses Buddy! Better luck next time );\")\r\n       return\r\n   #Call the guessing functions to give the clues\r\n   else:\r\n       score -= 1\r\n       message=clues()\r\n       messagebox.showinfo(message=message)<\/pre>\n<p><b>Code explanation:<\/b><\/p>\n<ul>\n<li><b>guess_and_score: <\/b><span style=\"font-weight: 400;\">Declare the function guess_and_score\u00a0<\/span><\/li>\n<li><b>global score, global guess: <\/b><span style=\"font-weight: 400;\">Make the variable global to preserve its value across other functions, ie not limiting to local scope (within the function)<\/span><\/li>\n<li><b>guess =0,guess = int(guess_entry.get()): <\/b><span style=\"font-weight: 400;\">Initialise guess to 0 and read the user given input. We put this in a try\u2026except block to raise an error if the user did not specify with a guess. Raise the error prompt using messagebox.showerror()<\/span><\/li>\n<li><b>if guess == target: <\/b><span style=\"font-weight: 400;\">Display the score to the player if he guesses it correct and disable the guess button. Enable the random number button to play another game<\/span><\/li>\n<li><b>elif score == 0: <\/b><span style=\"font-weight: 400;\">If the score is 0, it implies the user has run out of tries. Prompt the user with 0 score and show 0 moves to go<\/span><\/li>\n<li><b>Else block: <\/b><span style=\"font-weight: 400;\">The else block calls for clues. It calls clues functions which will call the functions created earlier. Display the clue using messagebox<\/span><\/li>\n<\/ul>\n<h4>4. Creating\u00a0 the user input interface:<\/h4>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#Create the user interface, specify the dimensions of the application window for Python Number Guessing project\r\nwindow  = Tk()\r\nwindow.geometry(\"350x200\")\r\nwindow.title(\"TechVidvan's Number Guessing Game\")\r\n \r\n#Mention the title of the app\r\ntitle_label = Label(window, text=\"TechVidvan's Number Guessing Game\\nGuess a number between 1 to 50\", font=('Ubuntu Mono',12))\r\ntitle_label.pack()\r\n \r\n#Generate random number\r\nrandom_number_button = Button(window, text=\"Generate Random Number\", command=generate_target_number)\r\nrandom_number_button.pack()\r\n#Read User input\r\nguess_label = Label(window, text=\"Enter your guess: \")\r\nguess_label.pack()\r\nguess_entry = Entry(window, width=3)\r\nguess_entry.pack()\r\n#Start guessing\r\nguess_button = Button(window, text=\"Guess Me\", command=guess_and_score, state=DISABLED)\r\nguess_button.pack()\r\n#Exit and close the app\r\nwindow.mainloop()<\/pre>\n<p><b>Code explanation:<\/b><\/p>\n<ul>\n<li><b>window\u00a0 = Tk(): <\/b><span style=\"font-weight: 400;\">Create a window by assigning the tkinter class constructor to it. We can now add widgets and entry fields to our app\u00a0<\/span><\/li>\n<li><b>window.geometry(&#8220;350&#215;200&#8221;): <\/b><span style=\"font-weight: 400;\">Set the dimensions of the application window using geometry. The parameters are width and height<\/span><\/li>\n<li><b>window.title(&#8220;TechVidvan&#8217;s Number Guessing Game&#8221;): <\/b><span style=\"font-weight: 400;\">Set a title for the titlebar of the application using title parameter\u00a0<\/span><\/li>\n<li><b>title_label, guess_label: <\/b><span style=\"font-weight: 400;\">To add any non editable text to the window, we use labels. The parameters are window and the text to display.<\/span><\/li>\n<li><b>Random_number_button, guess_button: <\/b><span style=\"font-weight: 400;\">Buttons invoke a function when the user clicks on them. The command parameter contains the function to call. The other parameters are the name of the button and the window it will sit on. Use state parameter to set on or off a button<\/span><\/li>\n<li><b>pack(): <\/b><span style=\"font-weight: 400;\">Placing a widget on a window makes it visible. So to position it, we use pack which puts it in the center of each row. First element is in the first row, second in the second row and so on<\/span><\/li>\n<li><b>window.mainloop()<\/b><span style=\"font-weight: 400;\">: Any line of command pertaining to the GUI will not be visible after mainloop. This line indicates the end of the application interface and allows to terminate the application when user closes it<\/span><\/li>\n<\/ul>\n<h3>Python Number Guessing Output<\/h3>\n<p><span style=\"font-weight: 400;\">Play the number guessing game by starting the random number generator and get the following output:<\/span><\/p>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/12\/python-number-guessing-output.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-85699\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2021\/12\/python-number-guessing-output.webp\" alt=\"python number guessing output\" width=\"1920\" height=\"1032\" \/><\/a><\/p>\n<h3><b>Summary<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Thus, we created a simple project to understand and create our functions to provide clues and calculate the scores of the games. We also created a GUI using tkinter to provide an interface\u00a0<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Guessing a number is a fun game that involves us to relate the clues the system gives us. This fun, yet provoking game is a simple way to keep our mind stimulated. Python Number&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":85700,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1053],"tags":[3331,4538,4539,4386,4540,483],"class_list":["post-85661","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-beginner-python-projects","tag-number-guessing-game-in-python","tag-number-guessing-project-in-python","tag-python-game-project","tag-python-number-guessing","tag-python-project"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Number Guessing Game in Python with Source Code - TechVidvan<\/title>\n<meta name=\"description\" content=\"Create number guessing game in python &amp; display scores the player gets. It is a fun game that involves us to relate clues given by system.\" \/>\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-number-guessing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Number Guessing Game in Python with Source Code - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Create number guessing game in python &amp; display scores the player gets. It is a fun game that involves us to relate clues given by system.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/\" \/>\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=\"2021-12-04T03:30:46+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-03T10:18:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/12\/number-guessing-game-python.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=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Number Guessing Game in Python with Source Code - TechVidvan","description":"Create number guessing game in python & display scores the player gets. It is a fun game that involves us to relate clues given by system.","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-number-guessing\/","og_locale":"en_US","og_type":"article","og_title":"Number Guessing Game in Python with Source Code - TechVidvan","og_description":"Create number guessing game in python & display scores the player gets. It is a fun game that involves us to relate clues given by system.","og_url":"https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2021-12-04T03:30:46+00:00","article_modified_time":"2026-06-03T10:18:44+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/12\/number-guessing-game-python.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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Number Guessing Game in Python with Source Code","datePublished":"2021-12-04T03:30:46+00:00","dateModified":"2026-06-03T10:18:44+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/"},"wordCount":1054,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/12\/number-guessing-game-python.webp","keywords":["beginner python projects","Number Guessing Game in Python","Number Guessing project in Python","python game project","python number guessing","Python project"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/","url":"https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/","name":"Number Guessing Game in Python with Source Code - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/12\/number-guessing-game-python.webp","datePublished":"2021-12-04T03:30:46+00:00","dateModified":"2026-06-03T10:18:44+00:00","description":"Create number guessing game in python & display scores the player gets. It is a fun game that involves us to relate clues given by system.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/12\/number-guessing-game-python.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2021\/12\/number-guessing-game-python.webp","width":1200,"height":628,"caption":"number guessing game python"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/python-number-guessing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Number Guessing Game in Python with Source Code"}]},{"@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\/85661","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=85661"}],"version-history":[{"count":2,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/85661\/revisions"}],"predecessor-version":[{"id":448131,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/85661\/revisions\/448131"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/85700"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=85661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=85661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=85661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}