

{"id":111914,"date":"2023-04-10T09:00:42","date_gmt":"2023-04-10T03:30:42","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=111914"},"modified":"2026-06-01T12:08:58","modified_gmt":"2026-06-01T06:38:58","slug":"python-fidget-spinner","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/","title":{"rendered":"Python Fidget Spinner \u2013 Snipe Your Stress Away"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:2518,&quot;href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1eo8Dd9dv6X-B1PCzdZosm3QrLA-pRLSW\\\/view?usp=drive_link&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20260601064017\\\/https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1eo8Dd9dv6X-B1PCzdZosm3QrLA-pRLSW\\\/view?usp=drive_link&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-06-02 06:36:31&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-02 06:36:31&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p>In this project, we will be building a Fidget Spinner Simulator using the Pygame library in Python. We will be using it to create the graphical interface for our Fidget Spinner Simulator.<\/p>\n<h3>About Python Fidget Spinner<\/h3>\n<p>The objective of this project is to create a Fidget Spinner Simulator that can be spun with the mouse and slows down over time, displaying a message &#8220;Tap on screen to spin&#8221; when it stops.<\/p>\n<h3>Prerequisites for Fidget Spinner using Python<\/h3>\n<p>Basic knowledge of Python programming language<\/p>\n<p>Pygame library installed in your system<\/p>\n<h3>Download Python Fidget Spinner Project<\/h3>\n<p>Please download the source code of python Fidget Spinner project from the following link:<a href=\"https:\/\/drive.google.com\/file\/d\/1eo8Dd9dv6X-B1PCzdZosm3QrLA-pRLSW\/view?usp=drive_link\"><strong> Python Fidget Spinner Project Code<\/strong><\/a><\/p>\n<h3>Steps to Create Fidget Spinner using Python<\/h3>\n<p>Following are the steps for developing the python fidget spinner project:<\/p>\n<h4>Step 1: Importing Libraries<\/h4>\n<p>The first step to create a fidget spinner is importing the necessary libraries. In this case, we will be using the Pygame library. Import it at the top of your code as shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Importing pygame library\r\nimport pygame\r\n<\/pre>\n<h4>Step 2: Initializing Pygame<\/h4>\n<p>Next, we will initialize Pygame using the pygame.init() function. This function initializes all the pygame modules required for our program.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Initialize Pygame\r\npygame.init()\r\n<\/pre>\n<h4>Step 3: Setting the window size and creating the window<\/h4>\n<p>We will set the size of the window in which our Fidget Spinner Simulator will be displayed. In this case, the size is set to 500&#215;500 pixels.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Set the window size\r\nsize = (500, 500)\r\nscreen = pygame.display.set_mode(size)\r\n<\/pre>\n<h4>Step 4: Setting the title of the window<\/h4>\n<p>We will set the title of the window using the pygame.display.set_caption() function.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Set the title of the window\r\npygame.display.set_caption(\"DataFlair - Fidget Spinner\")\r\n<\/pre>\n<h4>Step 5: Loading the fidget spinner image<\/h4>\n<p>We will load the fidget spinner image using the pygame.image.load() function.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Load the fidget spinner image\r\nspinner_image = pygame.image.load(\"fidget_spinner.png\").convert_alpha()\r\n<\/pre>\n<p><b>Note: <\/b>Make sure the image file is in the same directory as the python file or provide the full path of the image<\/p>\n<h4>Step 6: Resizing the image to fit the window<\/h4>\n<p>We will resize the image to fit the window using the pygame.transform.scale() function. In this case, we are scaling the image to 80% of the window size.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Resizing the image of the fidget spinner\r\n# to fit the window size i.e. 80% of the window size\r\nspinner_image = pygame.transform.scale(spinner_image, (int(size[0]*0.8), int(size[1]*0.8)))\r\n<\/pre>\n<h4>Step 7: Getting the rect of the fidget spinner image<\/h4>\n<p>We will get the rect of the fidget spinner image using the spinner_image.get_rect() function.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Get the rect of the fidget spinner image\r\nspinner_rect = spinner_image.get_rect()\r\n<\/pre>\n<h4>Step 8: Centering the rect on the screen<\/h4>\n<p>We will center the rect on the screen using the spinner_rect.center property.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Center the rect on the screen\r\nspinner_rect.center = (size[0]\/\/2, size[1]\/\/2)\r\n<\/pre>\n<h4>Step 9: Setting the spin angle and spin speed<\/h4>\n<p>We will set the initial spin angle and spin speed for the fidget spinner.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Set the spin angle\r\nspin_angle = 0\r\n\r\n\r\n# Set the spin speed\r\nspin_speed = 15\r\n<\/pre>\n<h4>Step 10: Setting the clock<\/h4>\n<p>In this step, we will set the clock variable. This variable is used to limit the number of frames per second that the animation is displayed at. This is important for performance and smoothness of the animation. In our case, we want the animation to run at 60 frames per second, so we set the clock variable as follows:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Set the clock\r\nclock = pygame.time.Clock()\r\n\r\n\r\nFPS = 60\r\n\r\n\r\n# Set the font and size for the message\r\nfont = pygame.font.Font(None, 30)\r\n<\/pre>\n<h4>Step 11: Main Loop<\/h4>\n<p>The main loop of the program is where the animation and event handling takes place. We use a while loop to keep the program running until the done variable is set to True. Within the loop, we check for any events that have occurred, such as the user clicking the X button to close the window.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Main loop\r\ndone = False\r\nwhile not done:\r\n   for event in pygame.event.get():\r\n        if event.type == pygame.QUIT:\r\n            done = True\r\n        elif event.type == pygame.MOUSEBUTTONDOWN:\r\n            spin_speed = 15\r\n<\/pre>\n<h4>Step 12: Clear the screen<\/h4>\n<p>Before we start drawing the fidget spinner, we need to clear the screen. We do this by filling the screen with a white color.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Clear the screen\r\n  screen.fill((255, 255, 255))\r\n<\/pre>\n<h4>Step 13: Rotate the fidget spinner<\/h4>\n<p>In this step, we rotate the fidget spinner by a certain angle. The angle is determined by the spin_angle variable which we increase by the spin_speed variable in each iteration of the loop. We also update the rect of the rotated image so that it stays centered on the screen.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Rotate the fidget spinner\r\n spin_angle += spin_speed\r\n rotated_image = pygame.transform.rotate(spinner_image, spin_angle)\r\n rotated_rect = rotated_image.get_rect(center=spinner_rect.center)\r\n\r\n<\/pre>\n<h4>Step 14: Draw the fidget spinner<\/h4>\n<p>Now that the fidget spinner is rotated, we can draw it on the screen. We use the blit() function to draw the rotated image on the screen at the position specified by the rotated_rect variable.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Draw the fidget spinner\r\nscreen.blit(rotated_image, rotated_rect)\r\n<\/pre>\n<h4>Step 15: Check if the fidget spinner stops<\/h4>\n<p>We check if the spin_speed variable is less than or equal to 0, indicating that the fidget spinner has stopped spinning. If it has, we display a message on the screen instructing the user to tap the screen to spin the fidget spinner again.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># check if fidget spinner stops\r\n    if spin_speed &lt;= 0:\r\n        # render the message 'tap on screen to spin'\r\n        message = font.render(\"Tap on screen to spin\", True, (0, 0, 0))\r\n        message_rect = message.get_rect(center=(size[0]\/\/2, size[1]\/\/2))\r\n        screen.blit(message, message_rect)\r\n    else:\r\n        # reduce the spin speed by 0.01 every frame\r\n        spin_speed -= 0.01\r\n<\/pre>\n<h4>Step 16: Update the display<\/h4>\n<p>After all the drawing and event handling is done, we update the display to show the current frame of the animation.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Update the display\r\n   pygame.display.flip()\r\n<\/pre>\n<h4>Step 17: Limit to 60 frames per second<\/h4>\n<p>Finally, we limit the number of frames per second that the animation is displayed at by using the tick() function of the clock variable.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Limit to 60 frames per second\r\nclock.tick(60)\r\n<\/pre>\n<h4>Step 18: Exit Pygame<\/h4>\n<p>At the end of the program, we need to exit Pygame using the pygame.quit() function. This function will clean up all the resources and exit the program.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Exit Pygame\r\npygame.quit()<\/pre>\n<h4>Complete Code:<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Importing pygame library\r\nimport pygame\r\n\r\n\r\n# Initialize Pygame\r\npygame.init()\r\n\r\n\r\n# Set the window size\r\nsize = (500, 500)\r\nscreen = pygame.display.set_mode(size)\r\n\r\n\r\n# Set the title of the window\r\npygame.display.set_caption(\"DataFlair - Fidget Spinner\")\r\n\r\n\r\n# Load the fidget spinner image\r\nspinner_image = pygame.image.load(\"fidget_spinner.png\").convert_alpha()\r\n\r\n\r\n# Resizing the image of the fidget spinner\r\n# to fit the window size i.e. 80% of the window size\r\nspinner_image = pygame.transform.scale(spinner_image, (int(size[0]*0.8), int(size[1]*0.8)))\r\n\r\n\r\n# Get the rect of the fidget spinner image\r\nspinner_rect = spinner_image.get_rect()\r\n\r\n\r\n# Center the rect on the screen\r\nspinner_rect.center = (size[0]\/\/2, size[1]\/\/2)\r\n\r\n\r\n# Set the spin angle\r\nspin_angle = 0\r\n\r\n\r\n# Set the spin speed\r\nspin_speed = 15\r\n\r\n\r\n# Set the clock\r\nclock = pygame.time.Clock()\r\n\r\n\r\nFPS = 60\r\n\r\n\r\n# Set the font and size for the message\r\nfont = pygame.font.Font(None, 30)\r\n\r\n\r\n# Main loop\r\ndone = False\r\nwhile not done:\r\n   for event in pygame.event.get():\r\n        if event.type == pygame.QUIT:\r\n            done = True\r\n        elif event.type == pygame.MOUSEBUTTONDOWN:\r\n            spin_speed = 15\r\n \r\n   # Clear the screen\r\n   screen.fill((255, 255, 255))\r\n  \r\n   # Rotate the fidget spinner\r\n   spin_angle += spin_speed\r\n   rotated_image = pygame.transform.rotate(spinner_image, spin_angle)\r\n   rotated_rect = rotated_image.get_rect(center=spinner_rect.center)\r\n  \r\n   # Draw the fidget spinner\r\n   screen.blit(rotated_image, rotated_rect)\r\n  \r\n   # check if fidget spinner stops\r\n    if spin_speed &lt;= 0:\r\n        # render the message 'tap on screen to spin'\r\n        message = font.render(\"Tap on screen to spin\", True, (0, 0, 0))\r\n        message_rect = message.get_rect(center=(size[0]\/\/2, size[1]\/\/2))\r\n        screen.blit(message, message_rect)\r\n    else:\r\n        # reduce the spin speed by 0.01 every frame\r\n        spin_speed -= 0.01\r\n  \r\n   # Update the display\r\n   pygame.display.flip()\r\n  \r\n   # Limit to 60 frames per second\r\n   clock.tick(60)\r\n\r\n\r\n\r\n\r\n# Exit Pygame\r\npygame.quit()<\/pre>\n<h3>Python Fidget Spinner Output<\/h3>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-112091\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/python-fidget-spinner-output.webp\" alt=\"python fidget spinner output\" width=\"1008\" height=\"1064\" \/><\/h3>\n<h3>Summary<\/h3>\n<p>In this project, we walk you through the process of creating a Fidget Spinner Simulator using the Pygame library in Python. The simulator allows users to interact with the spinner by clicking on the screen, simulating the spinning motion, and slowing down over time.<\/p>\n<p>The project includes instructions on how to import necessary libraries, set up the window, display the spinner image, and implement the spinning motion using Pygame&#8217;s functions. We hope you enjoyed this tutorial.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this project, we will be building a Fidget Spinner Simulator using the Pygame library in Python. We will be using it to create the graphical interface for our Fidget Spinner Simulator. About Python&#46;&#46;&#46;<\/p>\n","protected":false},"author":581,"featured_media":112090,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[27246,27245,27243,27244,25791,27242,21095,21073],"class_list":["post-111914","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-fidget-spinner","tag-fidget-spinner-project","tag-python-fidget-spinner","tag-python-fidget-spinner-project","tag-python-game-project","tag-python-project-for-practice","tag-python-project-ideas","tag-python-projects"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Fidget Spinner \u2013 Snipe Your Stress Away - DataFlair<\/title>\n<meta name=\"description\" content=\"We create a Fidget Spinner Simulator by using Pygame library that can be spun with the mouse and slows down over time.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Fidget Spinner \u2013 Snipe Your Stress Away - DataFlair\" \/>\n<meta property=\"og:description\" content=\"We create a Fidget Spinner Simulator by using Pygame library that can be spun with the mouse and slows down over time.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-04-10T03:30:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-01T06:38:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/python-projects-fidget-spinner.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Fidget Spinner \u2013 Snipe Your Stress Away - DataFlair","description":"We create a Fidget Spinner Simulator by using Pygame library that can be spun with the mouse and slows down over time.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/","og_locale":"en_US","og_type":"article","og_title":"Python Fidget Spinner \u2013 Snipe Your Stress Away - DataFlair","og_description":"We create a Fidget Spinner Simulator by using Pygame library that can be spun with the mouse and slows down over time.","og_url":"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2023-04-10T03:30:42+00:00","article_modified_time":"2026-06-01T06:38:58+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/python-projects-fidget-spinner.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/c187795dc82ab948373cca526df7c445"},"headline":"Python Fidget Spinner \u2013 Snipe Your Stress Away","datePublished":"2023-04-10T03:30:42+00:00","dateModified":"2026-06-01T06:38:58+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/"},"wordCount":872,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/python-projects-fidget-spinner.webp","keywords":["fidget spinner","fidget spinner project","python fidget spinner","python fidget spinner project","python game project","python project for practice","python project ideas","Python Projects"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/","url":"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/","name":"Python Fidget Spinner \u2013 Snipe Your Stress Away - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/python-projects-fidget-spinner.webp","datePublished":"2023-04-10T03:30:42+00:00","dateModified":"2026-06-01T06:38:58+00:00","description":"We create a Fidget Spinner Simulator by using Pygame library that can be spun with the mouse and slows down over time.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/python-projects-fidget-spinner.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/python-projects-fidget-spinner.webp","width":1200,"height":628,"caption":"python projects fidget spinner"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/python-fidget-spinner\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Python Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/python\/"},{"@type":"ListItem","position":3,"name":"Python Fidget Spinner \u2013 Snipe Your Stress Away"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/c187795dc82ab948373cca526df7c445","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2302ebc438084d2f1f993edc1996a0aae01332e81f3227cba8df0c48ec010ca4?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team provides high-impact content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We make complex concepts easy to grasp, helping learners of all levels succeed in their tech careers.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam6\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111914","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=111914"}],"version-history":[{"count":12,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111914\/revisions"}],"predecessor-version":[{"id":148589,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111914\/revisions\/148589"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/112090"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=111914"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=111914"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=111914"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}