

{"id":79561,"date":"2020-07-24T19:46:27","date_gmt":"2020-07-24T14:16:27","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=79561"},"modified":"2026-06-01T12:25:59","modified_gmt":"2026-06-01T06:55:59","slug":"currency-converter-python","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/currency-converter-python\/","title":{"rendered":"Currency Converter &#8211; Python Project with Source Code"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:2535,&quot;href&quot;:&quot;https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1SM32qmCE-yxlXWDgFTtJQZArg32Bb90v\\\/view?usp=drive_link&quot;,&quot;archived_href&quot;:&quot;http:\\\/\\\/web-wp.archive.org\\\/web\\\/20260601065521\\\/https:\\\/\\\/drive.google.com\\\/file\\\/d\\\/1SM32qmCE-yxlXWDgFTtJQZArg32Bb90v\\\/view?usp=drive_link&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[{&quot;date&quot;:&quot;2026-06-01 17:05:22&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-06 01:26:30&quot;,&quot;http_code&quot;:200},{&quot;date&quot;:&quot;2026-06-10 01:16:35&quot;,&quot;http_code&quot;:200}],&quot;broken&quot;:false,&quot;last_checked&quot;:{&quot;date&quot;:&quot;2026-06-10 01:16:35&quot;,&quot;http_code&quot;:200},&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p>Are you looking to build a solid career in Python? If Yes, you have to work on projects. DataFlair is devoted to make you a successful Python Developer. After tons of tutorials, practicals, interview questions, we are coming with a series of projects from beginner to advanced level.<\/p>\n<p>In this tutorial, we are going to build an exciting python project through which you can convert currencies. For a user interface, we are going to use the tkinter library<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/currency-converter-python-project.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79771\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/currency-converter-python-project.jpg\" alt=\"currency converter python project\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/currency-converter-python-project.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/currency-converter-python-project-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/currency-converter-python-project-1024x536.jpg 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/currency-converter-python-project-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/currency-converter-python-project-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/currency-converter-python-project-520x272.jpg 520w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/p>\n<h2>Currency Converter in Python<\/h2>\n<h3>Prerequisites<\/h3>\n<p>The currency converter project in python requires you to have basic knowledge of python programming and the pygame library.<\/p>\n<ul>\n<li>tkinter &#8211; For User Interface (UI)<\/li>\n<li>requests &#8211; to get url<\/li>\n<\/ul>\n<p>To install the tkinter and requests library, type the following code in your terminal:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">pip install tkinter\r\npip install requests\r\n<\/pre>\n<h3>Download Project Code<\/h3>\n<p>Before proceeding ahead, please download source code of project: <strong><a href=\"https:\/\/drive.google.com\/file\/d\/1SM32qmCE-yxlXWDgFTtJQZArg32Bb90v\/view?usp=drive_link\">Currency Converter Project Code<\/a><\/strong><\/p>\n<h3>Steps to Build the Python Project on Currency Converter<\/h3>\n<ol>\n<li>Real-time Exchange rates<\/li>\n<li>Import required Libraries<\/li>\n<li>CurrencyConverter Class<\/li>\n<li>UI for CurrencyConverter<\/li>\n<li>Main Function<\/li>\n<\/ol>\n<h4>1. Real-time Exchange rates<\/h4>\n<p>To get real-time exchange rates, we will use: https:\/\/api.exchangerate-api.com\/v4\/latest\/USD<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/exchange-rate-json-data.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79772\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/exchange-rate-json-data.png\" alt=\"exchange rate json data\" width=\"1111\" height=\"241\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/exchange-rate-json-data.png 1111w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/exchange-rate-json-data-300x65.png 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/exchange-rate-json-data-1024x222.png 1024w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/exchange-rate-json-data-150x33.png 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/exchange-rate-json-data-768x167.png 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/exchange-rate-json-data-520x113.png 520w\" sizes=\"auto, (max-width: 1111px) 100vw, 1111px\" \/><\/a><\/p>\n<p>Here, we can see the data in JSON format, with the following details:<\/p>\n<p><strong>Base &#8211; USD: <\/strong>It means we have our base currency USD. which means to convert any currency we have to first convert it to USD then from USD, we will convert it in whichever currency we want.<\/p>\n<p><strong>Date and time:<\/strong> It shows the last updated date and time.<\/p>\n<p><strong>Rates:<\/strong> It is the exchange rate of currencies with base currency USD.<\/p>\n<h4>2. Import the libraries:<\/h4>\n<p>For this project based on Python, we are using the tkinter and requests library. So we need to import the library.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">import requests\r\nfrom tkinter import *\r\nimport tkinter as tk\r\nfrom tkinter import ttk\r\n<\/pre>\n<h4>3.\u00a0Create the CurrencyConverter class:<\/h4>\n<p>Now we will create the CurrencyConverter class which will get the real-time exchange rate and convert the currency and return the converted amount.<\/p>\n<p>3.1. Let\u2019s create the <strong>constructor of class<\/strong>.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">class RealTimeCurrencyConverter():\r\n    def __init__(self,url):\r\n        self.data= requests.get(url).json()\r\n        self.currencies = self.data['rates']\r\n<\/pre>\n<p>requests.get(url) load the page in our python program and then .json() will convert the page into the json file. We store it in a data variable.<\/p>\n<p>3.2. <strong>Convert() method:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def convert(self, from_currency, to_currency, amount): \r\n    initial_amount = amount \r\n    #first convert it into USD if it is not in USD.\r\n    # because our base currency is USD\r\n    if from_currency != 'USD' : \r\n        amount = amount \/ self.currencies[from_currency] \r\n  \r\n    # limiting the precision to 4 decimal places \r\n    amount = round(amount * self.currencies[to_currency], 4) \r\n    return amount\r\n<\/pre>\n<p>This method takes following arguments:<\/p>\n<p><strong>From_currency:<\/strong>\u00a0currency from which you want to convert.<br \/>\n<strong>to _currency:<\/strong> currency in which you want to convert.<br \/>\n<strong>Amount:<\/strong> how much amount you want to convert.<\/p>\n<p>And returns the converted amount.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">url = 'https:\/\/api.exchangerate-api.com\/v4\/latest\/USD'\r\nconverter = RealTimeCurrencyConverter(url)\r\nprint(converter.convert('INR','USD',100))\r\n<\/pre>\n<p><strong>OUTPUT:<\/strong> 1.33<\/p>\n<p>100 Indian rupees = 1.33 US dollars<\/p>\n<h4>4. Now let\u2019s create a UI for the currency converter<\/h4>\n<p>To Create UI we will create a <strong>class CurrencyConverterUI<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def __init__(self, converter):\r\n    tk.Tk.__init__(self)\r\n    self.title = 'Currency Converter'\r\n    self.currency_converter = converter\r\n<\/pre>\n<p><strong>Converter:<\/strong> Currency Converter object which we will use to convert currencies. Above code will create a Frame.<\/p>\n<p>Let\u2019s Create the <strong>Converter<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">self.geometry(\"500x200\")\r\n\r\n#Label\r\nself.intro_label = Label(self, text = 'Welcome to Real Time Currency Convertor',  fg = 'blue', relief = tk.RAISED, borderwidth = 3)\r\nself.intro_label.config(font = ('Courier',15,'bold'))\r\n\r\nself.date_label = Label(self, text = f\"1 Indian Rupee equals = {self.currency_converter.convert('INR','USD',1)} USD \\n Date : {self.currency_converter.data['date']}\", relief = tk.GROOVE, borderwidth = 5)\r\n\r\nself.intro_label.place(x = 10 , y = 5)\r\nself.date_label.place(x = 170, y= 50)\r\n<\/pre>\n<p><em><strong>NOTE:<\/strong> This Code part of __init__ method.<\/em><\/p>\n<p>First, we set up the frame and add some info in it. After the execution of this part of code, our frame looks like something.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79773\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window.jpg\" alt=\"project window\" width=\"637\" height=\"414\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window.jpg 637w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window-300x195.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window-150x97.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window-520x338.jpg 520w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/a><\/p>\n<p>Now let\u2019s create the entry box for the amount and options of currency in the frame. So That users can enter the amount and choose among currencies.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"># Entry box\r\nvalid = (self.register(self.restrictNumberOnly), '%d', '%P')\r\n# restricNumberOnly function will restrict thes user to enter invavalid number in Amount field. We will define it later in code\r\nself.amount_field = Entry(self,bd = 3, relief = tk.RIDGE, justify = tk.CENTER,validate='key', validatecommand=valid)\r\nself.converted_amount_field_label = Label(self, text = '', fg = 'black', bg = 'white', relief = tk.RIDGE, justify = tk.CENTER, width = 17, borderwidth = 3)\r\n \r\n# dropdown\r\nself.from_currency_variable = StringVar(self)\r\nself.from_currency_variable.set(\"INR\") # default value\r\nself.to_currency_variable = StringVar(self)\r\nself.to_currency_variable.set(\"USD\") # default value\r\n \r\nfont = (\"Courier\", 12, \"bold\")\r\nself.option_add('*TCombobox*Listbox.font', font)\r\nself.from_currency_dropdown = ttk.Combobox(self, textvariable=self.from_currency_variable,values=list(self.currency_converter.currencies.keys()), font = font, state = 'readonly', width = 12, justify = tk.CENTER)\r\nself.to_currency_dropdown = ttk.Combobox(self, textvariable=self.to_currency_variable,values=list(self.currency_converter.currencies.keys()), font = font, state = 'readonly', width = 12, justify = tk.CENTER)\r\n \r\n# placing\r\nself.from_currency_dropdown.place(x = 30, y= 120)\r\nself.amount_field.place(x = 36, y = 150)\r\nself.to_currency_dropdown.place(x = 340, y= 120)\r\n#self.converted_amount_field.place(x = 346, y = 150)\r\nself.converted_amount_field_label.place(x = 346, y = 150)\r\n<\/pre>\n<p><em><strong>NOTE:<\/strong> This code is part of __init__<\/em><\/p>\n<p>After the successful Execution of code till now. We will get below screen:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window-2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79774\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window-2.jpg\" alt=\"project window 2\" width=\"637\" height=\"414\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window-2.jpg 637w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window-2-300x195.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window-2-150x97.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window-2-520x338.jpg 520w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/a><\/p>\n<p>Now Let\u2019s add the <strong>CONVERT<\/strong> button which will call the perform function.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\"> # Convert button\r\nself.convert_button = Button(self, text = \"Convert\", fg = \"black\", command = self.perform) \r\nself.convert_button.config(font=('Courier', 10, 'bold'))\r\nself.convert_button.place(x = 225, y = 135)\r\n<\/pre>\n<p><em>Command = self.perform &#8211; It means on click it will call perform().<\/em><\/p>\n<p><strong>perform() method:<\/strong><\/p>\n<p>The perform method will take the user input and convert the amount into the desired currency and display it on the converted_amount entry box.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def perform(self,):\r\n        amount = float(self.amount_field.get())\r\n        from_curr = self.from_currency_variable.get()\r\n        to_curr = self.to_currency_variable.get()\r\n \r\n        converted_amount= self.currency_converter.convert(from_curr,to_curr,amount)\r\n        converted_amount = round(converted_amount, 2)\r\n     \r\n        self.converted_amount_field_label.config(text = str(converted_amount))\r\n<\/pre>\n<p><em><strong>NOTE:<\/strong> this function is a part of App class.<\/em><\/p>\n<p><strong>RestrictNumberOnly() method:<\/strong><\/p>\n<p>Now let\u2019s create a <strong>restriction<\/strong> in our entry box. So that user can enter only a number in Amount Field. We have discussed earlier that this will be done by our RrestricNumberOnly method.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">def restrictNumberOnly(self, action, string):\r\n        regex = re.compile(r\"[0-9,]*?(\\.)?[0-9,]*$\")\r\n        result = regex.match(string)\r\n        return (string == \"\" or (string.count('.') &lt;= 1 and result is not None))\r\n<\/pre>\n<p><strong>NOTE:<\/strong> This function is a part of App class.<\/p>\n<h4>5. Let\u2019s create the main function.<\/h4>\n<p>First, we will create the Converter. Second, Create the UI for Converter<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">if __name__ == '__main__':\r\n    url = 'https:\/\/api.exchangerate-api.com\/v4\/latest\/USD'\r\n    converter = RealTimeCurrencyConverter(url)\r\n \r\n    App(converter)\r\n    mainloop()\r\n<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window-3.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79775\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window-3.jpg\" alt=\"project output window\" width=\"637\" height=\"414\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window-3.jpg 637w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window-3-300x195.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window-3-150x97.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/project-window-3-520x338.jpg 520w\" sizes=\"auto, (max-width: 637px) 100vw, 637px\" \/><\/a><\/p>\n<h2>Summary<\/h2>\n<p>In this article, we worked on the Python project to build a Currency Converter.<\/p>\n<p>I hope you learned new things and enjoyed building this interesting Python project. Share the article on social media with your friends and colleagues.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Are you looking to build a solid career in Python? If Yes, you have to work on projects. DataFlair is devoted to make you a successful Python Developer. After tons of tutorials, practicals, interview&#46;&#46;&#46;<\/p>\n","protected":false},"author":7,"featured_media":79771,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[24895,24896,24894,21082,22734],"class_list":["post-79561","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-currency-converter","tag-currency-converter-project","tag-currency-converter-python","tag-python-project","tag-python-project-for-beginners"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Currency Converter - Python Project with Source Code - DataFlair<\/title>\n<meta name=\"description\" content=\"Currency converter in Python - Work on exciting python project (for beginners) through which you can convert currencies in real-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\/currency-converter-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Currency Converter - Python Project with Source Code - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Currency converter in Python - Work on exciting python project (for beginners) through which you can convert currencies in real-time\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/currency-converter-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=\"2020-07-24T14:16:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-06-01T06:55:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/currency-converter-python-project.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":"Currency Converter - Python Project with Source Code - DataFlair","description":"Currency converter in Python - Work on exciting python project (for beginners) through which you can convert currencies in real-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\/currency-converter-python\/","og_locale":"en_US","og_type":"article","og_title":"Currency Converter - Python Project with Source Code - DataFlair","og_description":"Currency converter in Python - Work on exciting python project (for beginners) through which you can convert currencies in real-time","og_url":"https:\/\/data-flair.training\/blogs\/currency-converter-python\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2020-07-24T14:16:27+00:00","article_modified_time":"2026-06-01T06:55:59+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/currency-converter-python-project.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\/currency-converter-python\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/currency-converter-python\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/beb0cab24b7aa54423a3b50e669a9dcd"},"headline":"Currency Converter &#8211; Python Project with Source Code","datePublished":"2020-07-24T14:16:27+00:00","dateModified":"2026-06-01T06:55:59+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/currency-converter-python\/"},"wordCount":678,"commentCount":41,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/currency-converter-python\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/currency-converter-python-project.jpg","keywords":["currency converter","currency converter project","currency converter python","Python project","python project for beginners"],"articleSection":["Python Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/currency-converter-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/currency-converter-python\/","url":"https:\/\/data-flair.training\/blogs\/currency-converter-python\/","name":"Currency Converter - Python Project with Source Code - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/currency-converter-python\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/currency-converter-python\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/currency-converter-python-project.jpg","datePublished":"2020-07-24T14:16:27+00:00","dateModified":"2026-06-01T06:55:59+00:00","description":"Currency converter in Python - Work on exciting python project (for beginners) through which you can convert currencies in real-time","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/currency-converter-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/currency-converter-python\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/currency-converter-python\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/currency-converter-python-project.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2020\/07\/currency-converter-python-project.jpg","width":1200,"height":628,"caption":"currency converter python project"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/currency-converter-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":"Currency Converter &#8211; Python Project with Source Code"}]},{"@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\/79561","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=79561"}],"version-history":[{"count":8,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/79561\/revisions"}],"predecessor-version":[{"id":148608,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/79561\/revisions\/148608"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/79771"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=79561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=79561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=79561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}