

{"id":97932,"date":"2021-07-07T12:29:22","date_gmt":"2021-07-07T06:59:22","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=97932"},"modified":"2026-06-01T12:09:03","modified_gmt":"2026-06-01T06:39:03","slug":"python-mp3-player","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/python-mp3-player\/","title":{"rendered":"Learn How to Create an MP3 Music Player in Python"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:2516,&quot;href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1DZ7zFsJHrDoeyXXZm3DbD7dy7XsBzbXq\\\/view?usp=drive_link&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20260601063956\\\/https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1DZ7zFsJHrDoeyXXZm3DbD7dy7XsBzbXq\\\/view?usp=drive_link&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-06-01 14:59:22&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-01 14:59:22&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p>Everybody loves listening music wouldn\u2019t it be cool to have our very own mp3 music player. So, in this python project, we are going to create an mp3 player with the help of python and its libraries. Let\u2019s start the python mp3 player project.<\/p>\n<h3>Python MP3 Music Player<\/h3>\n<p>We will create an mp3 music player in which we can play the song, pause it, resume it, and navigate from the current song to the next song as well as previous songs.<\/p>\n<p>We will be using Python and its libraries. The first library that we will be using is Tkinter which is a widely used GUI library offered by python, we do not have to install it separately, as it comes with python itself.<\/p>\n<p>Next, we will be using the mixer module of a very famous python library called Pygame.<\/p>\n<p>Pygame is basically used to create video games, it includes computer graphics and sound libraries. Mixer is one such sound library. Then, we will use the os library of python to interact with the Operating system.<\/p>\n<h3>Project Prerequisites<\/h3>\n<p>To work on python mp3 player basic understanding of python programming language, tkinter, and mixer module of pygame would be helpful.<\/p>\n<p>A basic understanding of Tkinter widgets would also be required, but don\u2019t worry as we will be explaining every line of code as we go developing this mp3 player project.<\/p>\n<p>Unlike the Tkinter library, we are required to install the Pygame library.<\/p>\n<p>Please run following command in your command prompt or terminal to install pygame.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pip install pygame<\/pre>\n<h3>Download Python MP3 Player Project<\/h3>\n<p>Please download the source code of Python mp3 player: <a href=\"https:\/\/drive.google.com\/file\/d\/1DZ7zFsJHrDoeyXXZm3DbD7dy7XsBzbXq\/view?usp=drive_link\"><strong>MP3 Music Player Python Code<\/strong><\/a><\/p>\n<p>After doing this we are all set to start this Python project, you can use any IDE of your choice.<\/p>\n<h3>Steps to develop this project<\/h3>\n<ol>\n<li>Import important libraries<\/li>\n<li>Create the project layout<\/li>\n<li>Define play, pause, and other music player functions<\/li>\n<\/ol>\n<h4>1. Import important libraries<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#importing libraries \r\nfrom pygame import mixer\r\nfrom tkinter import *\r\nimport tkinter.font as font\r\nfrom tkinter import filedialog\r\n<\/pre>\n<p><strong>Explanation:<\/strong><\/p>\n<ul>\n<li>First line imports the mixer module from pygame, then we import tkinter.<\/li>\n<li>Next, we import the font module from the tkinter library. At last filedialog is imported which has many applications like opening a file, a directory, etc.<\/li>\n<\/ul>\n<h4>2. Create the overall layout of python mp3 player<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#add many songs to the playlist\r\ndef addsongs():\r\n\u00a0 \u00a0 #a list of songs is returned \r\n\u00a0 \u00a0 temp_song=filedialog.askopenfilenames(initialdir=\"Music\/\",title=\"Choose a song\", filetypes=((\"mp3 Files\",\"*.mp3\"),))\r\n\u00a0 \u00a0 #loop through everyitem in the list\r\n\u00a0 \u00a0 for s in temp_song:\r\n\u00a0 \u00a0 \u00a0 \u00a0 s=s.replace(\"C:\/Users\/lenovo\/Desktop\/DataFlair\/Notepad\/Music\/\",\"\")\r\n\u00a0 \u00a0 \u00a0 \u00a0 songs_list.insert(END,s)\r\n\u00a0 \u00a0 \u00a0 \u00a0 \r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \r\ndef deletesong():\r\n\u00a0 \u00a0 curr_song=songs_list.curselection()\r\n\u00a0 \u00a0 songs_list.delete(curr_song[0])\r\n\u00a0 \u00a0 \r\n\u00a0 \u00a0 \r\ndef Play():\r\n\u00a0 \u00a0 song=songs_list.get(ACTIVE)\r\n\u00a0 \u00a0 song=f'C:\/Users\/lenovo\/Desktop\/DataFlair\/Notepad\/Music\/{song}'\r\n\u00a0 \u00a0 mixer.music.load(song)\r\n\u00a0 \u00a0 mixer.music.play()\r\n\r\n#to pause the song \r\ndef Pause():\r\n\u00a0 \u00a0 mixer.music.pause()\r\n\r\n#to stop the \u00a0song \r\ndef Stop():\r\n\u00a0 \u00a0 mixer.music.stop()\r\n\u00a0 \u00a0 songs_list.selection_clear(ACTIVE)\r\n\r\n#to resume the song\r\n\r\ndef Resume():\r\n\u00a0 \u00a0 mixer.music.unpause()\r\n\r\n#Function to navigate from the current song\r\ndef Previous():\r\n\u00a0 \u00a0 #to get the selected song index\r\n\u00a0 \u00a0 previous_one=songs_list.curselection()\r\n\u00a0 \u00a0 #to get the previous song index\r\n\u00a0 \u00a0 previous_one=previous_one[0]-1\r\n\u00a0 \u00a0 #to get the previous song\r\n\u00a0 \u00a0 temp2=songs_list.get(previous_one)\r\n\u00a0 \u00a0 temp2=f'C:\/Users\/lenovo\/Desktop\/DataFlair\/Notepad\/Music\/{temp2}'\r\n\u00a0 \u00a0 mixer.music.load(temp2)\r\n\u00a0 \u00a0 mixer.music.play()\r\n\u00a0 \u00a0 songs_list.selection_clear(0,END)\r\n\u00a0 \u00a0 #activate new song\r\n\u00a0 \u00a0 songs_list.activate(previous_one)\r\n\u00a0 \u00a0 #set the next song\r\n\u00a0 \u00a0 songs_list.selection_set(previous_one)\r\n\r\ndef Next():\r\n\u00a0 \u00a0 #to get the selected song index\r\n\u00a0 \u00a0 next_one=songs_list.curselection()\r\n\u00a0 \u00a0 #to get the next song index\r\n\u00a0 \u00a0 next_one=next_one[0]+1\r\n\u00a0 \u00a0 #to get the next song \r\n\u00a0 \u00a0 temp=songs_list.get(next_one)\r\n\u00a0 \u00a0 temp=f'C:\/Users\/lenovo\/Desktop\/DataFlair\/Notepad\/Music\/{temp}'\r\n\u00a0 \u00a0 mixer.music.load(temp)\r\n\u00a0 \u00a0 mixer.music.play()\r\n\u00a0 \u00a0 songs_list.selection_clear(0,END)\r\n\u00a0 \u00a0 #activate newsong\r\n\u00a0 \u00a0 songs_list.activate(next_one)\r\n\u00a0 \u00a0 \u00a0#set the next song\r\n\u00a0 \u00a0 songs_list.selection_set(next_one)<\/pre>\n<p><strong>Explanation<\/strong><\/p>\n<ul>\n<li><strong>Tk()<\/strong> is a top level widget that is used to create the main application window in which we will be building our python project.<\/li>\n<li>The <strong>title()<\/strong> method is used to give a name to python mp3 player application which is displayed at the top.<\/li>\n<li><strong>mixer.init()<\/strong> is used to initialize the mixer module so that we can use it\u2019s various functions in our application.<\/li>\n<li><strong>Listbox()<\/strong> widget is used to create a listbox in which we will store our songs.\n<ul>\n<li>We have passed various parameters, first is the root specifying that the widget should be placed in the python mp3 player window.<\/li>\n<li>Then, bg is for background color, fg is for foreground color.<\/li>\n<li>selectbackground and selectforeground basically change the background and the foreground color of a particular item upon selecting it.<\/li>\n<\/ul>\n<\/li>\n<li><strong>grid()<\/strong> widget is a geometry manager which organizes the widgets properly in a grid-based fashion before placing it in the root window. columnspan=9 gives a space of 9 columns to our listbox widget.<\/li>\n<li><strong>Button()<\/strong> widget is used to create a button. We want the buttons in our main window so the input root is given. Then the text which will be displayed on the button is specified and at last in the command input a function is given which will be called when the button is clicked.<\/li>\n<li><strong>Menu()<\/strong> widget is displayed just under the title bar, it is used to conveniently access various operations. We are going to access Add songs and Delete songs for our playlist, upon clicking addsongs and deletesong functions are called respectively.<\/li>\n<\/ul>\n<h4>3. Create music player functions<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#creating the root window \r\nroot=Tk()\r\nroot.title('DataFlair Music player App ')\r\n#initialize mixer \r\nmixer.init()\r\n\r\n#create the listbox to contain songs\r\nsongs_list=Listbox(root,selectmode=SINGLE,bg=\"black\",fg=\"white\",font=('arial',15),height=12,width=47,selectbackground=\"gray\",selectforeground=\"black\")\r\nsongs_list.grid(columnspan=9)\r\n\r\n#font is defined which is to be used for the button font \r\ndefined_font = font.Font(family='Helvetica')\r\n\r\n#play button\r\nplay_button=Button(root,text=\"Play\",width =7,command=Play)\r\nplay_button['font']=defined_font\r\nplay_button.grid(row=1,column=0)\r\n\r\n#pause button \r\npause_button=Button(root,text=\"Pause\",width =7,command=Pause)\r\npause_button['font']=defined_font\r\npause_button.grid(row=1,column=1)\r\n\r\n#stop button\r\nstop_button=Button(root,text=\"Stop\",width =7,command=Stop)\r\nstop_button['font']=defined_font\r\nstop_button.grid(row=1,column=2)\r\n\r\n#resume button\r\nResume_button=Button(root,text=\"Resume\",width =7,command=Resume)\r\nResume_button['font']=defined_font\r\nResume_button.grid(row=1,column=3)\r\n\r\n#previous button\r\nprevious_button=Button(root,text=\"Prev\",width =7,command=Previous)\r\nprevious_button['font']=defined_font\r\nprevious_button.grid(row=1,column=4)\r\n\r\n#nextbutton\r\nnext_button=Button(root,text=\"Next\",width =7,command=Next)\r\nnext_button['font']=defined_font\r\nnext_button.grid(row=1,column=5)\r\n\r\n#menu \r\nmy_menu=Menu(root)\r\nroot.config(menu=my_menu)\r\nadd_song_menu=Menu(my_menu)\r\nmy_menu.add_cascade(label=\"Menu\",menu=add_song_menu)\r\nadd_song_menu.add_command(label=\"Add songs\",command=addsongs)\r\nadd_song_menu.add_command(label=\"Delete song\",command=deletesong)\r\n\r\n\r\nmainloop()<\/pre>\n<p><strong>Explanation<\/strong><\/p>\n<ul>\n<li><strong>addsongs()<\/strong> is used to add songs in our listbox, filedialog.askopenfilenames() opens a dialog box corresponding to the folder whose path is provided. Then, we can select songs and store them in temp_song variable, after this we loop through the list to insert every item in the listbox.<\/li>\n<li><strong>deletesong()<\/strong> is used to delete a selected song, songs_list.curselection() function returns a tuple in which the first element is the index of the selected song. Then, <strong>.delete()<\/strong> function is used to delete the song corresponding to the index which is passed.<\/li>\n<li><strong>Play()<\/strong> function is used to play the selected song , we use the <strong>.get()<\/strong> method to get the selected song, then we load the song and play it using the next two lines.<\/li>\n<li><strong>Pause()<\/strong> function is used to pause the song, we do not need to pass any argument to the mixer.music.pause() function.<\/li>\n<li><strong>Stop()<\/strong> function is used to stop the song, we use mixer.music.stop() function to stop the song.<br \/>\nsongs_list.selection_clear(ACTIVE) is used to unselect the selected song from the listbox<\/li>\n<li><strong>Resume()<\/strong> function is used to resume the song using mixer.music.unpause() function.<\/li>\n<li><strong>Previous()<\/strong> function is used to play the previous song in the listbox, songs_list.curselection() function returns a tuple in which the first element is the index of the selected song in python mp3 music player project. We store it in a variable called previous_one, then we update its value to get the previous index by subtracting 1. Next, songs_list.get(previous_one) returns the previous song, we store this value in temp2 after that we load this song and play it.<br \/>\nWe would face a problem here, although the previous song would start playing but the selected song would not change. So, we rectify that with the help of the next three lines of code.<\/li>\n<li><strong>Next()<\/strong> function is implemented in a similar way as the previous function. Here, instead of subtracting 1, we add 1 apart from this step every other step is the same.<\/li>\n<\/ul>\n<h3>Python MP3 Music Player Output<\/h3>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/07\/python-mp3-player-output.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-97938\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/07\/python-mp3-player-output.gif\" alt=\"python mp3 player output\" width=\"1920\" height=\"1030\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/07\/python-mp3-player-output.gif 1920w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/07\/python-mp3-player-output-768x412.gif 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/07\/python-mp3-player-output-1536x824.gif 1536w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/07\/python-mp3-player-output-720x386.gif 720w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/07\/python-mp3-player-output-520x279.gif 520w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/07\/python-mp3-player-output-320x172.gif 320w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/a><\/p>\n<h3>Summary<\/h3>\n<p>Congratulations! We have successfully created python mp3 music player, now we don&#8217;t have to rely on any other app.<\/p>\n<p>Through this python project we learned a lot of things about python and its libraries, the first one being the Tkinter library, a widely-used GUI library and various widgets that it offers, then the important mixer module of the pygame library which is used to manipulate the music.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Everybody loves listening music wouldn\u2019t it be cool to have our very own mp3 music player. So, in this python project, we are going to create an mp3 player with the help of python&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":97939,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[24713,24711,24712,21082],"class_list":["post-97932","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-mp3-music-player","tag-python-mp3-player","tag-python-music-player","tag-python-project"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Learn How to Create an MP3 Music Player in Python - DataFlair<\/title>\n<meta name=\"description\" content=\"Create an mp3 music player in python using tkinter and pygame. This mp3 player project provides following features: play, pause, stop, add, create list, etc.\" \/>\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-mp3-player\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn How to Create an MP3 Music Player in Python - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Create an mp3 music player in python using tkinter and pygame. This mp3 player project provides following features: play, pause, stop, add, create list, etc.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/python-mp3-player\/\" \/>\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=\"2021-07-07T06:59:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-01T06:39:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/07\/python-project-mp3-music-player.jpg\" \/>\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\/jpeg\" \/>\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":"Learn How to Create an MP3 Music Player in Python - DataFlair","description":"Create an mp3 music player in python using tkinter and pygame. This mp3 player project provides following features: play, pause, stop, add, create list, etc.","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-mp3-player\/","og_locale":"en_US","og_type":"article","og_title":"Learn How to Create an MP3 Music Player in Python - DataFlair","og_description":"Create an mp3 music player in python using tkinter and pygame. This mp3 player project provides following features: play, pause, stop, add, create list, etc.","og_url":"https:\/\/data-flair.training\/blogs\/python-mp3-player\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2021-07-07T06:59:22+00:00","article_modified_time":"2026-06-01T06:39:03+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/07\/python-project-mp3-music-player.jpg","type":"image\/jpeg"}],"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-mp3-player\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/python-mp3-player\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"Learn How to Create an MP3 Music Player in Python","datePublished":"2021-07-07T06:59:22+00:00","dateModified":"2026-06-01T06:39:03+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-mp3-player\/"},"wordCount":1048,"commentCount":21,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-mp3-player\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/07\/python-project-mp3-music-player.jpg","keywords":["mp3 music player","python mp3 player","python music player","Python project"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/python-mp3-player\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/python-mp3-player\/","url":"https:\/\/data-flair.training\/blogs\/python-mp3-player\/","name":"Learn How to Create an MP3 Music Player in Python - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-mp3-player\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-mp3-player\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/07\/python-project-mp3-music-player.jpg","datePublished":"2021-07-07T06:59:22+00:00","dateModified":"2026-06-01T06:39:03+00:00","description":"Create an mp3 music player in python using tkinter and pygame. This mp3 player project provides following features: play, pause, stop, add, create list, etc.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/python-mp3-player\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/python-mp3-player\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/python-mp3-player\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/07\/python-project-mp3-music-player.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/07\/python-project-mp3-music-player.jpg","width":1200,"height":628},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/python-mp3-player\/#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":"Learn How to Create an MP3 Music Player in Python"}]},{"@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\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/97932","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=97932"}],"version-history":[{"count":8,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/97932\/revisions"}],"predecessor-version":[{"id":148587,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/97932\/revisions\/148587"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/97939"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=97932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=97932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=97932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}