Currency Converter C urrency Conversion is a basic real time need in today's life, whether it's exchange of currency while tourism or stock market, import and export duties, determine the selling and buying profits of different products around the world. So it can be referred to as one of the key elements in globalization. Use of a Module: Forex Module Install the module into the computer first by running the following command in the Command Prompt: pip install forex-python Copy the following code: from forex_python.converter import CurrencyRates curr = CurrencyRates() print(""" Country with currency codes and currency names Albania ALL lek Algeria DZD dinar Angola AOA kwanza Argentina ARS peso Armenia AMD dram Australia AUD dollar Austria EUR euro Azerbaijan AZN manat Bahrain BHD dinar Barbados BBD dollar Belarus BYN rouble Belgium EUR euro Bermuda BMD dollar Bolivia BOB boliviano Bosnia and Herzegovina BAM konvertibilna marka Botswana BWP pula Br
SwapCase Tutorial S wapcase is a program to change the cases of the texts (strings), i.e. changing the capital font to small and vice versa. This program can be used to improve the basic python knowledge of python strings and can show how the swapcase() function works internally. It can be done using a lot of algorithms. I'll show you guys 2 tutorials to do the same. In this article, I'll only show the 1st method, then 2nd method will be shown in the next article which would be posted next day. > Method-I Copy the following code: #swapcase (method 1) s = input("Enter your string:") s2 = "" l = len(s) for i in range(l): if s[i].isupper()==True: s2 += s[i].lower() elif s[i].islower()==True: s2 += s[i].upper() else: s2 += s[i] print("Your string after swapping cases:",s2) ©SGPython