

{"id":111922,"date":"2023-04-11T09:00:24","date_gmt":"2023-04-11T03:30:24","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=111922"},"modified":"2026-06-01T12:45:12","modified_gmt":"2026-06-01T07:15:12","slug":"python-weight-converter","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/python-weight-converter\/","title":{"rendered":"Python Weight Converter \u2013 Convert Weight with Ease"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:2558,&quot;href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1wHR3zKCEAZ43ldAgL7pnDp48wrKAqi3R\\\/view?usp=drive_link&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20260601071557\\\/https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1wHR3zKCEAZ43ldAgL7pnDp48wrKAqi3R\\\/view?usp=drive_link&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-06-02 07:03:09&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-05 21:41:35&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-05 21:41:35&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p>In this project, we will create a weight converter using the Python library Tkinter. This project will have a GUI (Graphical User Interface) that allows the user to select the input and output weight units, enter a weight value, and convert it to the desired unit. This project will have the ability to convert between Kilogram, Gram, Pound, and Ounce units.<\/p>\n<h3>About Python Weight Converter<\/h3>\n<p>The objective of this project is to create a weight converter that can be used to convert between different weight units. This project will be covering the following topics:<\/p>\n<ul>\n<li style=\"font-weight: 400\">Importing libraries in Python<\/li>\n<li style=\"font-weight: 400\">Creating a GUI using tkinter<\/li>\n<li style=\"font-weight: 400\">Using the tkinter library to create labels, comboboxes, and entries<\/li>\n<li style=\"font-weight: 400\">Creating a function to convert the weight<\/li>\n<\/ul>\n<h3>Prerequisites for Weight Converter using Python<\/h3>\n<p>To follow along with this project, you should have a basic understanding of Python programming and the Tkinter library. You should also have a text editor or an IDE (Integrated Development Environment) installed on your machine.<\/p>\n<p>You can install Tkinter library by typing the following command on the terminal<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">pip install tk \r\n<\/pre>\n<h3>Download Python Weight Converter Project<\/h3>\n<p>Please download the source code of python Weight Converter project from the following link: <a href=\"https:\/\/drive.google.com\/file\/d\/1wHR3zKCEAZ43ldAgL7pnDp48wrKAqi3R\/view?usp=drive_link\"><strong>Python Weight Converter Project Code\u00a0<\/strong><\/a><\/p>\n<h3>Steps to Create Weight Converter using Python<\/h3>\n<p>Following are the steps for developing the python Weight Converter project:<\/p>\n<h4>Step 1: Importing Libraries<\/h4>\n<p>In the first step we will be importing the necessary libraries. We will be using the tkinter library to create the GUI and the tkinter.font and tkinter.ttk libraries to create the font and combobox elements respectively. To import the libraries, add the following code at the top of your Python file.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Importing the required libraries\r\nimport tkinter as tk\r\nimport tkinter.ttk as ttk\r\n<\/pre>\n<h4>Step 2: Creating a Window<\/h4>\n<p>The next step is to create a window for the app. We will use the Tk() method of the tkinter library to create the window. We will also set the title of the window, the size of the window, and the background color of the window.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Creating a window\r\nroot = tk.Tk()\r\nroot.title(\"DataFlair - Weight Convertor\")\r\n\r\n\r\n# Setting the size of the window,\r\n# disable resizing the window\r\n# and setting the background color\r\nroot.geometry(\"600x250\")\r\nroot.resizable(width=False, height=False)\r\nroot.configure(background=\"#0b496d\")\r\n<\/pre>\n<h4>Step 3: Creating the GUI Elements<\/h4>\n<p>In this step, we will create the various GUI elements that make up the app. We will create a label to display the title of this project, two comboboxes to select the input and output weight units, and two entries to enter and display the weight values. To create these elements, add the following code to your Python file.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Creating a label to display the title\r\ntitle_label=tk.Label(root)\r\ntitle_label.configure(background=\"#ff6b62\", foreground=\"#ffd700\", text=\"DataFlair - Weight Convertor\", font=\"Arial 25\", justify=\"center\")\r\ntitle_label.place(x=0,y=0,width=600,height=46)\r\n\r\n\r\n# Creating a label to display \"Select Input Weight Unit\"\r\nlabel_1=tk.Label(root)\r\nlabel_1.configure(background=\"#0b496d\", foreground=\"#ffffff\", text=\"Select Input Weight Unit\", font=\"Arial 16\", justify=\"center\")\r\nlabel_1.place(x=10,y=60,width=273,height=31)\r\n\r\n\r\n# Creating a combobox to select the input weight unit\r\ninput_combo=ttk.Combobox(root)\r\ninput_combo[\"values\"] = [\"Kilogram\", \"Gram\", \"Pound\", \"Ounce\"]\r\ninput_combo.place(x=10,y=100,width=273,height=30)\r\ninput_combo.current(0)\r\ninput_combo.configure(state='readonly')\r\n\r\n\r\n# Creating a label to display \"Select Output Weight Unit\"\r\nlabel_2=tk.Label(root)\r\nlabel_2.configure(background=\"#0b496d\", foreground=\"#ffffff\", text=\"Select Ouput Weight Unit\", font=\"Arial 16\", justify=\"center\")\r\nlabel_2.place(x=320,y=60,width=268,height=30)\r\n\r\n\r\n# Creating a combobox to select the output weight unit\r\noutput_combo=ttk.Combobox(root)\r\noutput_combo[\"values\"] = [\"Kilogram\", \"Gram\", \"Pound\", \"Ounce\"]\r\noutput_combo.place(x=320,y=100,width=268,height=30)\r\noutput_combo.current(0)\r\n# output_combo.configure(state='readonly')\r\n      \r\n# Creating a label to display \"Input Weight\"\r\ninput_entry=tk.Entry(root)\r\ninput_entry.configure(background=\"#000000\", foreground=\"#ffffff\", font=\"Arial 26\", justify=\"center\")\r\ninput_entry.place(x=10,y=140,width=274,height=36)\r\n# placing the cursor in the input_entry\r\ninput_entry.focus()\r\n\r\n\r\n\r\n\r\n# Creating a label to display \"Output Weight\"\r\noutput_entry=tk.Entry(root)\r\noutput_entry.configure(background=\"#000000\", foreground=\"#ffffff\", font=\"Arial 26\", justify=\"center\", state='readonly')\r\noutput_entry.place(x=320,y=140,width=268,height=36)\r\n<\/pre>\n<h4>Step 4: Adding the Function to Convert the Weight<\/h4>\n<p>In this step, we will add a function that will convert the weight according to the selected input and output units. The function will be triggered when the user clicks on the &#8220;Convert&#8221; button.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"> #function to convert the weight\r\ndef convert():\r\n   #get the input weight unit\r\n   input_unit = input_combo.get()\r\n   #get the output weight unit\r\n   output_unit = output_combo.get()\r\n   #get the input weight value and convert it to float\r\n   input_weight = float(input_entry.get())\r\n\r\n\r\n   #convert the input weight to kilogram\r\n    if input_unit == \"Kilogram\":\r\n        kilogram = input_weight\r\n    elif input_unit == \"Gram\":\r\n        kilogram = input_weight \/ 1000\r\n    elif input_unit == \"Pound\":\r\n        kilogram = input_weight * 0.453592\r\n    elif input_unit == \"Ounce\":\r\n        kilogram = input_weight * 0.0283495\r\n    else:\r\n        kilogram = 0\r\n\r\n\r\n   #convert the input weight to output weight\r\n    if output_unit == \"Kilogram\":\r\n        output_weight = kilogram\r\n    elif output_unit == \"Gram\":\r\n        output_weight = kilogram * 1000\r\n    elif output_unit == \"Pound\":\r\n       output_weight = kilogram \/ 0.453592\r\n   elif output_unit == \"Ounce\":\r\n       output_weight = kilogram \/ 0.0283495\r\n   else:\r\n       output_weight = 0\r\n\r\n\r\n   #set the output weight value\r\n   output_entry.configure(state='normal')\r\n   output_entry.delete(0, 'end')\r\n   output_entry.insert(0, str(output_weight))\r\n   output_entry.configure(state='readonly')\r\n<\/pre>\n<p>This function will get the selected input and output units, and the input weight value from the corresponding widgets. It will then convert the input weight to kilograms, and then to the selected output unit. Finally, it will display the output weight in the output_entry widget.<\/p>\n<h4>Step 5: Adding the Convert Button<\/h4>\n<p>In this step, we will add a button that will trigger the convert function when clicked. Add the following code to the bottom of your script, after the convert function:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Creating a button to convert the weight\r\nconvert_button=tk.Button(root)\r\nconvert_button.configure(background=\"#ff7800\", foreground=\"#000000\", font=\"Arial 14\", justify=\"center\", text=\"Convert\", command=convert)\r\nconvert_button.place(x=230,y=200,width=147,height=36)\r\n<\/pre>\n<p>This creates a button widget with the text &#8220;Convert&#8221; and assigns the convert function as its command. The button is placed at the specified location and dimensions.<\/p>\n<h4>Step 6: Running the Weight Converter Project<\/h4>\n<p>Finally, we will run the weight converter project by adding the following code at the bottom of the script:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\"># Running the mainloop \r\nroot.mainloop()\r\n<\/pre>\n<p>This code runs the Tkinter event loop, which will keep the weight converter running until the user closes the window.<\/p>\n<p>Now, run your script, you will be able to see the weight converter.<\/p>\n<h3>Python Weight Converter Output<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-112239\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/python-weight-convertor-output.webp\" alt=\"python weight converter output\" width=\"1200\" height=\"556\" \/><\/p>\n<h3>Summary<\/h3>\n<p>Hooray! We have successfully created a weight converter using Python and Tkinter.<\/p>\n<p>In this project, we have learned how to create a GUI project using Tkinter. We have also learned how to create a combobox, entry, and button using Tkinter. After creating the GUI, we have created a function to convert the weight. Now, you can convert the weight from one unit to another unit. However, this is a very basic weight converter.<\/p>\n<p>You can add more features to this weight converter and make it more user-friendly and attractive according to your needs. I hope you have enjoyed this project. If you have any questions, feel free to ask in the comment section below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this project, we will create a weight converter using the Python library Tkinter. This project will have a GUI (Graphical User Interface) that allows the user to select the input and output weight&#46;&#46;&#46;<\/p>\n","protected":false},"author":581,"featured_media":112238,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[21082,22734,27242,21095,27258,27255,27257,27256],"class_list":["post-111922","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-python-project","tag-python-project-for-beginners","tag-python-project-for-practice","tag-python-project-ideas","tag-python-weight-converter","tag-python-weight-converter-project","tag-weight-converter","tag-weight-converter-project"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Python Weight Converter \u2013 Convert Weight with Ease - DataFlair<\/title>\n<meta name=\"description\" content=\"Python Weight Converter will have the ability to convert between Kilogram, Gram, Pound, and Ounce. We will create this by using Tkinter.\" \/>\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-weight-converter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Weight Converter \u2013 Convert Weight with Ease - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Python Weight Converter will have the ability to convert between Kilogram, Gram, Pound, and Ounce. We will create this by using Tkinter.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/python-weight-converter\/\" \/>\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-11T03:30:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-01T07:15:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/python-projects-weight-convertor.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=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python Weight Converter \u2013 Convert Weight with Ease - DataFlair","description":"Python Weight Converter will have the ability to convert between Kilogram, Gram, Pound, and Ounce. We will create this by using Tkinter.","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-weight-converter\/","og_locale":"en_US","og_type":"article","og_title":"Python Weight Converter \u2013 Convert Weight with Ease - DataFlair","og_description":"Python Weight Converter will have the ability to convert between Kilogram, Gram, Pound, and Ounce. We will create this by using Tkinter.","og_url":"https:\/\/data-flair.training\/blogs\/python-weight-converter\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2023-04-11T03:30:24+00:00","article_modified_time":"2026-06-01T07:15:12+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/python-projects-weight-convertor.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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/python-weight-converter\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/python-weight-converter\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/c187795dc82ab948373cca526df7c445"},"headline":"Python Weight Converter \u2013 Convert Weight with Ease","datePublished":"2023-04-11T03:30:24+00:00","dateModified":"2026-06-01T07:15:12+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-weight-converter\/"},"wordCount":722,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-weight-converter\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/python-projects-weight-convertor.webp","keywords":["Python project","python project for beginners","python project for practice","python project ideas","python weight converter","python weight converter project","weight converter","weight converter project"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/python-weight-converter\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/python-weight-converter\/","url":"https:\/\/data-flair.training\/blogs\/python-weight-converter\/","name":"Python Weight Converter \u2013 Convert Weight with Ease - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/python-weight-converter\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/python-weight-converter\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/python-projects-weight-convertor.webp","datePublished":"2023-04-11T03:30:24+00:00","dateModified":"2026-06-01T07:15:12+00:00","description":"Python Weight Converter will have the ability to convert between Kilogram, Gram, Pound, and Ounce. We will create this by using Tkinter.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/python-weight-converter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/python-weight-converter\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/python-weight-converter\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/python-projects-weight-convertor.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/python-projects-weight-convertor.webp","width":1200,"height":628,"caption":"python projects weight converter"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/python-weight-converter\/#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 Weight Converter \u2013 Convert Weight with Ease"}]},{"@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\/111922","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=111922"}],"version-history":[{"count":13,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111922\/revisions"}],"predecessor-version":[{"id":148635,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111922\/revisions\/148635"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/112238"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=111922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=111922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=111922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}