‎Easy Forex - Currency Rates, Converter, and More on the ...

Error while creating a currency converter (Python)

Hi guys, so I am new and self thought in Python and I was trying to create a currency converter. At first it worked OK but then I tried to make it so it has the option to make another conversion after the first one and I keep getting an error and I don't understand why, can somebody help please? Here is the code:
## Taking inputs ##

def inputs():
first_input = input(" Welcome, please select the currency you want to convert from: \n press 'd' for dollar \n press 'l' for lei \n press 'e' for euro \n")
second_input = input("Following the same pattern as before, please select the currency you want to convert to:")
suma = int(input("Please type the ammount"))
return first_input
return second_input
return suma

## Exchange Rate ##

eurolei = 4.8
dollarlei = 4.4
leieuro = 0.21
leidollar = 0.23
eurodollar = 1.10
dollareuro = 0.91

## Getting the result ##

def result():
result =[]
if first_input == 'e' and second_input == 'l':
result = int(suma) * eurolei
elif first_input == 'd' and second_input == 'l':
result = int(suma) * dollarlei
elif first_input == 'l' and second_input == 'e':
result = int(suma) * leieuro
elif first_input == 'l' and second_input == 'd':
result = int(suma) * leidollar
elif first_input == 'e' and second_input == 'd':
result = int(suma) * eurodollar
elif first_input == 'd' and second_input == 'e':
result = int(suma) * dollareuro
print ("Error")
print (f'result = {result}')

## Make it repeat after the first resutl ##

def program():
playing = True
while playing == True :
continuare = input("Go again? 'y' or 'n'")
if continuare.lower()[0] == 'n':
playing == False
playing == True

NameError: name 'first_input' is not defined (line 17: if first_input == 'e' and second_input == 'l':

I could have made it easier, but I wanted to make it this way because later I plan on finding a way to grab the currency exchanges rates live straight from a forex web page and I though that this way would be the best.
I know that this is pretty easy but I'm new to this and any help would be great. Thanks!
submitted by uta44 to learnprogramming [link] [comments]

The Easiest Forex STRATEGY! You must watch! 🙄 - YouTube 10 Easy Facts About Forex Rates, Currency Exchange Rates ... HOW TO TRADE FOREX 2020  MAKE MONEY ONLINE $230 A DAY ... Forex.Today: Live Forex Training for Beginner Traders! - Friday March 13 2020 Super Easy London Breakout Strategy (Scalping Forex Market ... 9 Easy Facts About Forex Market — Live Forex Charts and ... How I Mastered Forex In 1 Year - YouTube

Looking for real time currency rates? Stay up-to-date with easy-forex. Check our live currency rates of major currency pairs. Easy Forex - Currency Rates, Converter, and More 4+ ADVFN 1.0, 1 Rating; Free; Offers In-App Purchases; iPhone Screenshots. Description. ADVFN's Easy Forex is the best forex app for traders across global markets. Free access to: * Streaming Forex Quotes * FX Charts * Currency Conversion Calculator * Forex Tick Scope * Forex Market News * Streaming Trades for each currency pair * World ... Risk Warning : Forex, Commodities, Options and CFDs (OTC Trading) are leveraged products that carry a substantial risk of loss up to your invested capital and may not be suitable for everyone. Please ensure that you fully understand the risks involved and do not invest money you cannot afford to lose. Please refer to our full risk disclaimer. Long-term influence: change of currency rate trend from several weeks to several years. This impact is determined by fundamental factors, which set terms for national economic (dynamics of inflation, unemployment and interest rates etc.) This middle-term predict of national rate is used for opening strategical positions. Forex Rates, Currency Exchange Rates & Forex Trading. Welcome to Forex Rates! Live forex quotes, forex charts, tools, calculators, forecasts and exchange rates for the top worldwide traded currencies. See live forex rates self-updating every 10 seconds on each page, or choose to see candlestick charts. We cover extensive historical exchange rates with graphs and also provide over 125 worldwide ... VIP Forex Services. Easy Forex Pips is An expert team of market analysts generate our trading forex signals and unlike the automated trading bots used everywhere, they bring in the human touch to the process and provide you with the most best effective trading signals you can find on the web. Real-Time Currency Rates What’s the current price of your favorite instrument? X. Understanding Live Rates. Real time market prices can help you better understand the best time to exit or enter a trade. Knowing what the prices are can help you avoid unnecessary risks and better develop your strategy. Sell and Buy – this shows current rates at which a specific instrument is being offered to ...

[index] [4696] [20117] [25629] [20802] [28764] [14393] [20713] [19694] [25716] [11080]

The Easiest Forex STRATEGY! You must watch! 🙄 - YouTube

Visit This Site: https://bit.ly/2OUuOCk - 10 Easy Facts About Forex Rates, Currency Exchange Rates & Forex Trading Explained OANDA uses cookies to make our s... PLEASE SUBSCRIBE FOR INVITATIONS TO OUR LIVE STREAMS I've been trading forex live since 2004. Watch me go through the technicals and fundamentals of currency trading live. The 4 forex strategies that every trader should know ! 🚨🚨Trading Performance 🚨🚨 Improve Your Trading Performance at our Fundamental Trading Academy https://w... https://rebrand.ly/cfxcp The foreign exchange market, or else referred to as the foreign exchange, was first developed in 1971. Despite being in existence fo... How I Mastered Forex In 1 Year In this video Jay Wayne shows you what it takes to be successful in trading forex. In 1 year he was able to make 15K from a $3... Forex Trade With Us http://bit.ly/2EYIbgI Email: [email protected] P.S MY INSTAGRAM IS GONE NOW SO IF SOMEBODY WRITES YOU ITS NOT ME ALSO IM NOT ON T... Watch this lesson to discover an effective scalping trading strategy that could help you become more successful when trading the Forex market. In this video ...