{"id":86120,"date":"2022-04-15T10:09:56","date_gmt":"2022-04-15T04:39:56","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=86120"},"modified":"2026-06-03T15:28:21","modified_gmt":"2026-06-03T09:58:21","slug":"python-bubble-sort-visualizer-pygame","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/python-bubble-sort-visualizer-pygame\/","title":{"rendered":"Python Bubble Sort Visualizer using PyGame"},"content":{"rendered":"<p>Bubble sort is a simple sorting technique that is the fastest of all the sorting techniques. In this project, we will be understanding the concept of bubble sort and we will create a visualizer using Python to see how the bubble sort actually works.<\/p>\n<h3>Bubble Sort Visualizer<\/h3>\n<p>Bubble Sort is a simple sorting algorithm that swaps the adjacent numbers in the array to sort the array. Let us take an example and understand the concept of Bubble Sort in detail.<\/p>\n<p>Let us take an array &#8211; [1,6,8,3,2]. As we can see this is an unsorted array.<\/p>\n<p><strong>Sorting for the first time:<\/strong><\/p>\n<p>We will look at each adjacent element from the beginning, taking each input as a pair.<\/p>\n<p>[1,6] &#8211; This is sorted so no changes need to be made.<\/p>\n<p>[6,8] &#8211; This is sorted so no changes need to be made.<\/p>\n<p>[8,3] &#8211; Now this is not sorted so let us swap this. New array after this step is [1,6,3,8,2]<\/p>\n<p>[8,2] &#8211; Now this set is also not sorted so let us swap this too. New array after this step is [1,6,3,2,8]<\/p>\n<p><strong>Sorting for second time:<\/strong><\/p>\n<p>We will be repeating the process till we get a sorted array.<\/p>\n<p>[1,6] &#8211; Already sorted<\/p>\n<p>[6,3] &#8211; Swap this. Updated array [1,3,6,2,8]<\/p>\n<p>[6,2] &#8211; Swap this to sort. Updated array [1,3,2,6,8]<\/p>\n<p>[6,8] &#8211; Already sorted.<\/p>\n<p>By the end of this, our array is [1,3,2,6,8]<\/p>\n<p><strong>Sorting for the third time:<\/strong><\/p>\n<p>[1,3] &#8211; Already sorted.<\/p>\n<p>[3,2] &#8211; Swap this. Now we get the array [1,2,3,6,8]<\/p>\n<p>Now that we have got the sorted array, we still have to do this till the last element.<\/p>\n<p>[3,6] and [6,8] are already sorted.<\/p>\n<p>So after sorting 3 times, we have our sorted array.<\/p>\n<p>Now that the concept of Bubble Sort is clear, we will use this and make a visual representation of the Bubble Sort Algorithm.<\/p>\n<h3>Python Bubble Sort Visualizer project Details<\/h3>\n<p>In this project, we are going to use the Bubble Sort Algorithm and Visualize using Pygame. Here we are going to take a list as input from the user and will visualize what happens in a bubble sort algorithm.<\/p>\n<p>This is an intermediate-level project and requires a basic understanding of the Pygame Module.<\/p>\n<h3>Project Prerequisites<\/h3>\n<p>While creating this project, we will require these three modules.<\/p>\n<p>1. <strong>Pygame<\/strong> &#8211; We will be building the GUI of the project using Pygame. Command to install pygame is as &#8211;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pip install pygame\r\n<\/pre>\n<p>2. <strong>Math<\/strong> &#8211; Math Library is for doing some calculations during the creation of a project. The command to install it is &#8211;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pip install math<\/pre>\n<h3>Download Bubble Sort Visualizer Python Project<\/h3>\n<p>Before proceeding with the project, please download the source code of the bubble sort visualizer project from the following link: <a href=\"https:\/\/drive.google.com\/file\/d\/1thAEHJ4EkdZ2x-6ReGwbXsKseI0CHCcq\/view?usp=drive_link\"><strong>Bubble Sort Visualizer Project Code<\/strong><\/a><\/p>\n<h3>Steps to Create the Project<\/h3>\n<p>Follow these steps to proceed with the python bubble sort visualizer project:<\/p>\n<ol>\n<li>Import the required Libraries<\/li>\n<li>Creating a Game Window<\/li>\n<li>Function for setting the List<\/li>\n<li>Displaying the sorting window on the screen<\/li>\n<li>Bubble Sort Algorithm<\/li>\n<li>Display List<\/li>\n<li>Main Function<\/li>\n<li>Calling the Main Method<\/li>\n<\/ol>\n<h3>1. Import the Required Libraries:<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#importing library\r\nimport pygame\r\nimport math\r\n<\/pre>\n<ul>\n<li>We need to import these libraries to proceed with the project.<\/li>\n<\/ul>\n<h3>2. Creating a Game Window:<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pygame.init()#creating a window\r\n<\/pre>\n<ul>\n<li>init() &#8211; This method initializes the imported modules of this project.<\/li>\n<\/ul>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def __init__(self, width, height, lst):\r\n   self.width = width\r\n   self.height = height\r\n \r\n   self.window = pygame.display.set_mode((width, height))#display the window\r\n   pygame.display.set_caption(\"Bubble Sort Visualization with TechVidvan\")#setting title to the window\r\n   self.set_list(lst)\r\n<\/pre>\n<ul>\n<li>We have created an init() function that will help us make our GUI window.<\/li>\n<li>Set_mode() &#8211; this method will help us set the window for display and specify the width and height of the window.<\/li>\n<li>set_caption() &#8211; this method sets the title of the screen.<\/li>\n<li>set_list() &#8211; this is for setting the list that we will be generating. We will be generating the set_list() function in the next step.<\/li>\n<\/ul>\n<h3>3. Function for Setting the List (set_list()):<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def set_list(self, lst):# setting the min max for the array\r\n        self.lst = lst\r\n        self.mini = min(lst)#setting minimum value to mini\r\n        self.maxi = max(lst)#setting maximum value to maxi\r\n \r\n        self.block_width = round((self.width - self.SIDE_PAD) \/ len(lst))\r\n        self.block_height = math.floor((self.height - self.TOP_PAD) \/ (self.maxi - self.mini))\r\n        self.start_x = self.SIDE_PAD \/\/ 2\r\n<\/pre>\n<ul>\n<li>Using the min() and max() methods, we are setting the minimum and maximum values to their variables.<\/li>\n<li>In this segment, we are creating blocks for each element in the array. According to the value of the element, we are creating the height, width and colour of the block.<\/li>\n<li>round() &#8211; This is for rounding off.<\/li>\n<li>floor() &#8211; Floor() is an inbuilt library of the math module which helps us round off the number to the down number.<\/li>\n<\/ul>\n<h3>4. Displaying the Sorting Window on the Screen:<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def draw(draw_info, algo_name, ascending):\r\n    draw_info.window.fill(draw_info.BACKGROUND_COLOR)#filling background colour to the window\r\n    controls = draw_info.FONT.render(\"Press SPACE to tart Sorting\", 1, draw_info.BLACK)#setting that when space is clicked sorting happens\r\n    draw_info.window.blit(controls, (draw_info.width\/2 - controls.get_width()\/2 , 45))\r\n    #function to update the array for sorting\r\n    draw_list(draw_info)\r\n    pygame.display.update()#updating the window\r\n<\/pre>\n<ul>\n<li>We have created a draw function to display the sorting window on the screen.<\/li>\n<li>Font.render() &#8211; Specifies the font and colour of the window and saves it in a variable called controls.<\/li>\n<li>blit() &#8211; This method takes the controls variable and specifies the x and y coordinates that need to be displayed on the screen.<\/li>\n<li>update() &#8211; This method will update what\u2019s happening on the screen.<\/li>\n<\/ul>\n<h3>5. Bubble Sort Algorithm:<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def bubble_sort(draw_info, ascending=True):# algo for bubble sort\r\n    lst = draw_info.lst\r\n \r\n    for i in range(len(lst) - 1):\r\n        for j in range(len(lst) - 1 - i):\r\n            n1 = lst[j]\r\n            n2 = lst[j + 1]\r\n \r\n            if (n1 &gt; n2 and ascending) or (n1 &lt; n2 and not ascending):\r\n                lst[j], lst[j + 1] = lst[j + 1], lst[j]\r\n                draw_list(draw_info, {j: draw_info.ORANGE, j + 1: draw_info.PINK}, True)\r\n                yield True\r\n \r\n    return lst\r\n        #making a new array to display\r\n        array1 = [str(i) for i in lst]\r\n        array1=\",\".join(array1)\r\n<\/pre>\n<ul>\n<li>As we have seen what bubble sort is, we are creating the bubble sort algorithm using the loops concept in python. Using the draw_info, we are drawing the blocks on the screen.<\/li>\n<li>We sort the adjacent elements and display the updated blocks one by one. While the blocks are moving we want them to be orange and pink. We set ascending = True so that the sorting is always in the ascending order.<\/li>\n<li>We create an array (array1) and copy each item of the list into that array using the join method.<\/li>\n<\/ul>\n<h3>6. Show the List :<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def show(draw_info):\r\n    lst = draw_info.lst\r\n    draw_info.window.fill(draw_info.BACKGROUND_COLOR)\r\n    block =  draw_info.FONT.render(str(lst), True, (0,0,0))\r\n    #Display the array\r\n    draw_info.window.blit(block, (0,20))<\/pre>\n<ul>\n<li>Draw_info.lst &#8211; We will take in the list entered.<\/li>\n<li>fill() &#8211; This will fill in the background colour.<\/li>\n<li>We have created a block which will display the list in sorted and unsorted manner.<\/li>\n<li>window.blit() &#8211; This function displays the block on the main screen<\/li>\n<\/ul>\n<h3>7. Main Function:<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">def main():#main method\r\n    run = True\r\n    clock = pygame.time.Clock()\r\n \r\n \r\n    lst=[]\r\n    n = int(input(\"Enter number of elements : \"))\r\n# iterating till the range\r\n    for i in range(0, n):\r\n        ele=int(input())\r\n        lst.append(ele)\r\n \r\n    draw_info = drawinfo(800, 600, lst)\r\n    sorting = False\r\n    ascending = True\r\n \r\n    sorting_algorithm = bubble_sort\r\n    sorting_algo_name = \"Bubble Sort\"\r\n    sorting_algorithm_generator = None\r\n \r\n    while run:\r\n        clock.tick(90)\r\n \r\n        if sorting:\r\n            try:\r\n                next(sorting_algorithm_generator)\r\n            except StopIteration:\r\n                sorting = False\r\n        else:\r\n            draw(draw_info, sorting_algo_name, ascending)\r\n \r\n        for event in pygame.event.get():\r\n            if event.type == pygame.QUIT:\r\n                run = False\r\n \r\n            if event.type != pygame.KEYDOWN:\r\n                continue\r\n \r\n            if event.key == pygame.K_r:\r\n   \r\n                draw_info.set_list(lst)\r\n                sorting = False\r\n            elif event.key == pygame.K_SPACE and sorting == False:\r\n                sorting = True\r\n                sorting_algorithm_generator = sorting_algorithm(draw_info, ascending)\r\n            elif event.key == pygame.K_a and not sorting:\r\n                ascending = True\r\n            elif event.key == pygame.K_d and not sorting:\r\n                ascending = False\r\n \r\n \r\n    pygame.quit()#exiting the window\r\n<\/pre>\n<ul>\n<li>We create an empty list. Using the print() function, we ask the user to enter the number of elements in the list and taking the input using the input() method we add each element entered using the append() method to that empty list.<\/li>\n<li>pygame.time.clock() &#8211; This creates an object and keeps track of the time while sorting.<\/li>\n<li>clock.tick() &#8211; This gets time in milliseconds.<\/li>\n<li>Now we specify that when the space bar is clicked on the keyboard then the sorting takes place.<\/li>\n<li>pygame.quit() &#8211; Terminates the window.<\/li>\n<\/ul>\n<h3>8. Calling the Main Method:<\/h3>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">if __name__ == \"__main__\":\r\n    main()#calling main method\r\n<\/pre>\n<ul>\n<li>This is to call the main method.<\/li>\n<\/ul>\n<h3>Python Bubble Sort Visualiser Output<\/h3>\n<p><a href=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/04\/python-bubble-sort-visualizer-output.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-86132\" src=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/04\/python-bubble-sort-visualizer-output.webp\" alt=\"python bubble sort visualizer output\" width=\"800\" height=\"450\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>We have successfully created a Bubble Sort Visualizer Project using Pygame module of python. While creating this project we used three libraries.<\/p>\n<ul>\n<li>Pygame Module<\/li>\n<li>Math Module<\/li>\n<li>Random Module<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Bubble sort is a simple sorting technique that is the fastest of all the sorting techniques. In this project, we will be understanding the concept of bubble sort and we will create a visualizer&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":86131,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1053],"tags":[3741,4699,4700,4701,4702,4703,483,3249],"class_list":["post-86120","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-bubble-sort","tag-bubble-sort-visualizer-project","tag-bubble-sort-visualizer-project-source-code","tag-bubble-sort-visualizer-using-python","tag-easy-python-project","tag-python-bubble-sort-visualizer","tag-python-project","tag-python-project-for-beginners"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Bubble Sort Visualizer using PyGame - TechVidvan<\/title>\n<meta name=\"description\" content=\"Develop Bubble Sort Visualizer project using python modules like pygame, math and random. Bubble sort is the fastest sorting technique.\" \/>\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-bubble-sort-visualizer-pygame\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Bubble Sort Visualizer using PyGame - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"Develop Bubble Sort Visualizer project using python modules like pygame, math and random. Bubble sort is the fastest sorting technique.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/python-bubble-sort-visualizer-pygame\/\" \/>\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=\"2022-04-15T04:39:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-03T09:58:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/04\/python-bubble-sort-visualizer-pygame.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":"Python Bubble Sort Visualizer using PyGame - TechVidvan","description":"Develop Bubble Sort Visualizer project using python modules like pygame, math and random. Bubble sort is the fastest sorting technique.","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-bubble-sort-visualizer-pygame\/","og_locale":"en_US","og_type":"article","og_title":"Python Bubble Sort Visualizer using PyGame - TechVidvan","og_description":"Develop Bubble Sort Visualizer project using python modules like pygame, math and random. Bubble sort is the fastest sorting technique.","og_url":"https:\/\/techvidvan.com\/tutorials\/python-bubble-sort-visualizer-pygame\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2022-04-15T04:39:56+00:00","article_modified_time":"2026-06-03T09:58:21+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/04\/python-bubble-sort-visualizer-pygame.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-bubble-sort-visualizer-pygame\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-bubble-sort-visualizer-pygame\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Python Bubble Sort Visualizer using PyGame","datePublished":"2022-04-15T04:39:56+00:00","dateModified":"2026-06-03T09:58:21+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-bubble-sort-visualizer-pygame\/"},"wordCount":1030,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-bubble-sort-visualizer-pygame\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/04\/python-bubble-sort-visualizer-pygame.webp","keywords":["Bubble Sort","Bubble Sort Visualizer project","Bubble Sort Visualizer project source code","Bubble Sort Visualizer using Python","easy python project","Python Bubble Sort Visualizer","Python project","python project for beginners"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/python-bubble-sort-visualizer-pygame\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/python-bubble-sort-visualizer-pygame\/","url":"https:\/\/techvidvan.com\/tutorials\/python-bubble-sort-visualizer-pygame\/","name":"Python Bubble Sort Visualizer using PyGame - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-bubble-sort-visualizer-pygame\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-bubble-sort-visualizer-pygame\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/04\/python-bubble-sort-visualizer-pygame.webp","datePublished":"2022-04-15T04:39:56+00:00","dateModified":"2026-06-03T09:58:21+00:00","description":"Develop Bubble Sort Visualizer project using python modules like pygame, math and random. Bubble sort is the fastest sorting technique.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/python-bubble-sort-visualizer-pygame\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/python-bubble-sort-visualizer-pygame\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/python-bubble-sort-visualizer-pygame\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/04\/python-bubble-sort-visualizer-pygame.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2022\/04\/python-bubble-sort-visualizer-pygame.webp","width":1200,"height":628,"caption":"python bubble sort visualizer pygame"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/python-bubble-sort-visualizer-pygame\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Python Bubble Sort Visualizer using PyGame"}]},{"@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\/86120","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=86120"}],"version-history":[{"count":1,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/86120\/revisions"}],"predecessor-version":[{"id":448077,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/86120\/revisions\/448077"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/86131"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=86120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=86120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=86120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}