

{"id":91849,"date":"2021-04-19T13:41:59","date_gmt":"2021-04-19T08:11:59","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=91849"},"modified":"2026-06-01T12:09:00","modified_gmt":"2026-06-01T06:39:00","slug":"create-notepad-text-editor-python","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/","title":{"rendered":"How to Create a Notepad using Python"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:2517,&quot;href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1JiQZ7ocOVDFHGhDYd-0GTz40Qm5RnS1m\\\/view?usp=drive_link&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20260601064024\\\/https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1JiQZ7ocOVDFHGhDYd-0GTz40Qm5RnS1m\\\/view?usp=drive_link&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-06-01 15:50:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-04 23:39:15&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-08 04:50:52&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-08 04:50:52&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p>Today we are going to learn how to build your text editor like Notepad using python. This is a detailed tutorial with code and explanation using which you will be able to create your text editor.<\/p>\n<h3>About Notepad<\/h3>\n<p>As you must be already aware, Notepad is a simple text editor for Microsoft Windows that allows users to create text documents, save them as plain text, and edit plaintext files. It is extremely useful for viewing or writing relatively short text documents saved as plain text.<\/p>\n<ul>\n<li style=\"font-weight: 400\">The File menu has options like New, Open, Save, Save As, and Exit.<\/li>\n<li style=\"font-weight: 400\">The Edit menu has options like Cut, Copy, Paste, Delete, Find, Select All, and Time\/Date.<\/li>\n<li style=\"font-weight: 400\">The Help menu has options like About Notepad.<\/li>\n<\/ul>\n<h3>Download Notepad Python Code<\/h3>\n<p>Please download the source code of text editor \/ notepad: <a href=\"https:\/\/drive.google.com\/file\/d\/1JiQZ7ocOVDFHGhDYd-0GTz40Qm5RnS1m\/view?usp=drive_link\"><strong>Notepad Python Project Code<\/strong><\/a><\/p>\n<h3>Steps to create a Notepad using Python<\/h3>\n<h4>Import\u00a0required packages and libraries<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#importing required packages and libraries\r\n\r\nimport re\r\nfrom tkinter import *\r\nfrom tkinter.ttk import *\r\nfrom datetime import datetime\r\nfrom tkinter import messagebox\r\nfrom tkinter import filedialog,simpledialog\r\nfrom tkinter.scrolledtext import ScrolledText\r\n<\/pre>\n<p>To start with, we first import the required packages and libraries into our python program. We will use Tkinter to design our notepad GUI. The package \u2018re\u2019 is for regular expressions, which we will use later to implement functionalities in the \u2018Edit\u2019 menu option for our notepad.<\/p>\n<p>We import \u2018datetime\u2019 to display the time and date in the \u2018Edit\u2019 menu.<\/p>\n<h4>Initialize the GUI window<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#the root widget\r\nroot = Tk()\r\nroot.title('DataFlair Notepad')\r\nroot.resizable(0, 0)\r\n\r\n#creating scrollable notepad window\r\nnotepad = ScrolledText(root, width = 90, height = 40)\r\nfileName = ' '\r\n<\/pre>\n<p>After importing all the libraries and packages, we initialize the GUI window with the title Python Notepad. I have made the window size fixed by passing values (0,0) to the resizable function. We use the ScrolledText function to make our notepad window scrollable as more text gets added.<\/p>\n<h4>Define Functions<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#defining functions for commands\r\ndef cmdNew():     #file menu New option\r\n    global fileName\r\n    if len(notepad.get('1.0', END+'-1c'))&gt;0:\r\n        if messagebox.askyesno(\"Notepad\", \"Do you want to save changes?\"):\r\n            cmdSave()\r\n        else:\r\n            notepad.delete(0.0, END)\r\n    root.title(\"Notepad\")\r\n\r\ndef cmdOpen():     #file menu Open option\r\n    fd = filedialog.askopenfile(parent = root, mode = 'r')\r\n    t = fd.read()     #t is the text read through filedialog\r\n    notepad.delete(0.0, END)\r\n    notepad.insert(0.0, t)\r\n    \r\ndef cmdSave():     #file menu Save option\r\n    fd = filedialog.asksaveasfile(mode = 'w', defaultextension = '.txt')\r\n    if fd!= None:\r\n        data = notepad.get('1.0', END)\r\n    try:\r\n        fd.write(data)\r\n    except:\r\n        messagebox.showerror(title=\"Error\", message = \"Not able to save file!\")\r\n     \r\ndef cmdSaveAs():     #file menu Save As option\r\n    fd = filedialog.asksaveasfile(mode='w', defaultextension = '.txt')\r\n    t = notepad.get(0.0, END)     #t stands for the text gotten from notepad\r\n    try:\r\n        fd.write(t.rstrip())\r\n    except:\r\n        messagebox.showerror(title=\"Error\", message = \"Not able to save file!\")\r\n\r\ndef cmdExit():     #file menu Exit option\r\n    if messagebox.askyesno(\"Notepad\", \"Are you sure you want to exit?\"):\r\n        root.destroy()\r\n\r\ndef cmdCut():     #edit menu Cut option\r\n    notepad.event_generate(\"&lt;&lt;Cut&gt;&gt;\")\r\n\r\ndef cmdCopy():     #edit menu Copy option\r\n    notepad.event_generate(\"&lt;&lt;Copy&gt;&gt;\")\r\n\r\ndef cmdPaste():     #edit menu Paste option\r\n    notepad.event_generate(\"&lt;&lt;Paste&gt;&gt;\")\r\n\r\ndef cmdClear():     #edit menu Clear option\r\n    notepad.event_generate(\"&lt;&lt;Clear&gt;&gt;\")\r\n       \r\ndef cmdFind():     #edit menu Find option\r\n    notepad.tag_remove(\"Found\",'1.0', END)\r\n    find = simpledialog.askstring(\"Find\", \"Find what:\")\r\n    if find:\r\n        idx = '1.0'     #idx stands for index\r\n    while 1:\r\n        idx = notepad.search(find, idx, nocase = 1, stopindex = END)\r\n        if not idx:\r\n            break\r\n        lastidx = '%s+%dc' %(idx, len(find))\r\n        notepad.tag_add('Found', idx, lastidx)\r\n        idx = lastidx\r\n    notepad.tag_config('Found', foreground = 'white', background = 'blue')\r\n    notepad.bind(\"&lt;1&gt;\", click)\r\n\r\ndef click(event):     #handling click event\r\n    notepad.tag_config('Found',background='white',foreground='black')\r\n\r\ndef cmdSelectAll():     #edit menu Select All option\r\n    notepad.event_generate(\"&lt;&lt;SelectAll&gt;&gt;\")\r\n    \r\ndef cmdTimeDate():     #edit menu Time\/Date option\r\n    now = datetime.now()\r\n    # dd\/mm\/YY H:M:S\r\n    dtString = now.strftime(\"%d\/%m\/%Y %H:%M:%S\")\r\n    label = messagebox.showinfo(\"Time\/Date\", dtString)\r\n\r\ndef cmdAbout():     #help menu About option\r\n    label = messagebox.showinfo(\"About Notepad\", \"Notepad by - \\nDataFlair\")\r\n<\/pre>\n<p>Next, we define functions for the File menu, Edit menu, and Help menu of our notepad.<\/p>\n<ul>\n<li style=\"font-weight: 400\">The File menu has options like New, Open, Save, Save As, and Exit.<\/li>\n<li style=\"font-weight: 400\">The Edit menu will have the options Cut, Copy, Paste, Delete, Find, Select All and Time\/Date.<\/li>\n<li style=\"font-weight: 400\">The Help menu item will have the option About Notepad that just displays some basic text and information.<\/li>\n<\/ul>\n<p>Python Tkinter provides a set of functions that we can use while working with files. By using these, we do not have to design standard dialogues by ourselves. I have opened a file and saved the file using the filedialog library.<\/p>\n<p>The messagebox widget in Tkinter is used to display the message boxes in the python applications. It has several functions that we can use to display appropriate messages. I have used the askyesno and showerror functions.<\/p>\n<h4>Add Commands<\/h4>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">#notepad menu items\r\nnotepadMenu = Menu(root)\r\nroot.configure(menu=notepadMenu)\r\n\r\n#file menu\r\nfileMenu = Menu(notepadMenu, tearoff = False)\r\nnotepadMenu.add_cascade(label='File', menu = fileMenu)\r\n\r\n#adding options in file menu\r\nfileMenu.add_command(label='New', command = cmdNew)\r\nfileMenu.add_command(label='Open...', command = cmdOpen)\r\nfileMenu.add_command(label='Save', command = cmdSave)\r\nfileMenu.add_command(label='Save As...', command = cmdSaveAs)\r\nfileMenu.add_separator()\r\nfileMenu.add_command(label='Exit', command = cmdExit)\r\n\r\n#edit menu\r\neditMenu = Menu(notepadMenu, tearoff = False)\r\nnotepadMenu.add_cascade(label='Edit', menu = editMenu)\r\n\r\n#adding options in edit menu\r\neditMenu.add_command(label='Cut', command = cmdCut)\r\neditMenu.add_command(label='Copy', command = cmdCopy)\r\neditMenu.add_command(label='Paste', command = cmdPaste)\r\neditMenu.add_command(label='Delete', command = cmdClear)\r\neditMenu.add_separator()\r\neditMenu.add_command(label='Find...', command = cmdFind)\r\neditMenu.add_separator()\r\neditMenu.add_command(label='Select All', command = cmdSelectAll)\r\neditMenu.add_command(label='Time\/Date', command = cmdTimeDate)\r\n\r\n#help menu\r\nhelpMenu = Menu(notepadMenu, tearoff = False)\r\nnotepadMenu.add_cascade(label='Help', menu = helpMenu)\r\n\r\n#adding options in help menu\r\nhelpMenu.add_command(label='About Notepad', command = cmdAbout)\r\n<\/pre>\n<p>Tkinter has predefined virtual events which can be used using the event_generate function. I have used the events &lt;&lt;Cut&gt;&gt;, &lt;&lt;Copy&gt;&gt;, &lt;&lt;Paste&gt;&gt;, &lt;&lt;Clear&gt;&gt;, and &lt;&lt;SelectAll&gt;&gt; to implement the options available in the edit menu of python notepad.<\/p>\n<p>The find function is to find a given string or substring from the text in the notepad. The TimeDate function is to display the current time and date to the user.<\/p>\n<p>We will be using all these functions when we add commands to our menu options for File, Edit, and Help. This is why we have named the functions as cmdNew, cmdSave, cmdOpen, etc. where cmd is an abbreviation for command. This makes the code more understandable and readable.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">notepad.pack()\r\nroot.mainloop()\r\n<\/pre>\n<p>The last thing we need to do is to add the menu options in notepad for File, Edit, and Help, and then add specific commands to these menus. While creating the menus using the Menu function, the parameter \u2018tearoff = False\u2019 is to prevent Tkinter from adding a dotted line in the menu which is added by default.<\/p>\n<p>We label the commands using the \u2018label\u2019 parameter. This is how the menu option will appear to the user. The \u2018command\u2019 parameter is used to assign the functions that we created earlier, that will define how the command will behave.<\/p>\n<p>Finally \u2018root.mainloop()\u2019 is a method on the main window that runs our application. This method will continuously loop, it will wait for events from the user till the user exits the program.<\/p>\n<p>When we close the window that we have created, we will see a new prompt is displayed in the python shell.<\/p>\n<h3>Python Notepad Output Screenshots<\/h3>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/04\/python-notepad-screenshot-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-91852\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/04\/python-notepad-screenshot-1.png\" alt=\"python notepad screenshot\" width=\"924\" height=\"456\" \/><\/a><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/04\/python-notepad-screenshot-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-91853\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/04\/python-notepad-screenshot-2.png\" alt=\"python notepad text-editor screenshot\" width=\"923\" height=\"433\" \/><\/a><\/p>\n<h3>Conclusion<\/h3>\n<p>We have successfully developed a text editor \/ notepad using python. Along with a simple notepad we have developed file, edit, and help menu. In this python project, we have used tkinter and basic python concepts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we are going to learn how to build your text editor like Notepad using python. This is a detailed tutorial with code and explanation using which you will be able to create your&#46;&#46;&#46;<\/p>\n","protected":false},"author":7,"featured_media":92464,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[24103,21082,22734,10887],"class_list":["post-91849","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-python-notepad","tag-python-project","tag-python-project-for-beginners","tag-python-text-editor"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create a Notepad using Python - DataFlair<\/title>\n<meta name=\"description\" content=\"Simple Notepad in Python - Learn how to create a notepad or text editor with python. In this project we use Tkinter for GUI and basic python concepts.\" \/>\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\/create-notepad-text-editor-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create a Notepad using Python - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Simple Notepad in Python - Learn how to create a notepad or text editor with python. In this project we use Tkinter for GUI and basic python concepts.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/\" \/>\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-04-19T08:11:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-01T06:39:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/04\/python-notepad-text-editor.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=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create a Notepad using Python - DataFlair","description":"Simple Notepad in Python - Learn how to create a notepad or text editor with python. In this project we use Tkinter for GUI and basic python concepts.","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\/create-notepad-text-editor-python\/","og_locale":"en_US","og_type":"article","og_title":"How to Create a Notepad using Python - DataFlair","og_description":"Simple Notepad in Python - Learn how to create a notepad or text editor with python. In this project we use Tkinter for GUI and basic python concepts.","og_url":"https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2021-04-19T08:11:59+00:00","article_modified_time":"2026-06-01T06:39:00+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/04\/python-notepad-text-editor.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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd"},"headline":"How to Create a Notepad using Python","datePublished":"2021-04-19T08:11:59+00:00","dateModified":"2026-06-01T06:39:00+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/"},"wordCount":741,"commentCount":5,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/04\/python-notepad-text-editor.jpg","keywords":["python notepad","Python project","python project for beginners","python text editor"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/","url":"https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/","name":"How to Create a Notepad using Python - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/04\/python-notepad-text-editor.jpg","datePublished":"2021-04-19T08:11:59+00:00","dateModified":"2026-06-01T06:39:00+00:00","description":"Simple Notepad in Python - Learn how to create a notepad or text editor with python. In this project we use Tkinter for GUI and basic python concepts.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/04\/python-notepad-text-editor.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2021\/04\/python-notepad-text-editor.jpg","width":1200,"height":628,"caption":"python notepad text editor"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/create-notepad-text-editor-python\/#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":"How to Create a Notepad using 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\/beb0cab24b7aa54423a3b50e669a9dcd","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c322416204232f4dd97ef3901b0a499a5d34d7ba7fe333f4bfe53a907873d293?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team specializes in creating clear, actionable content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Backed by industry expertise, we make learning easy and career-oriented for beginners and pros alike.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam3\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/91849","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=91849"}],"version-history":[{"count":2,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/91849\/revisions"}],"predecessor-version":[{"id":148588,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/91849\/revisions\/148588"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/92464"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=91849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=91849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=91849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}