pub-3785248829033902 | Python: Currency Calculator Dollar vs Euro | - Big data with Python

| Python: Currency Calculator Dollar vs Euro |

The best way to learn new things is to take a practical approach of the things you want to learn. Here is a fragment of code that demonstrates the use of USD/EUR calculator statement in Python:


Æ’ python command

def fx(eur):
    amount = eur / 1.85
    print(str(round(amount,4)) + ' FX EUR/USD')
fx(2)

output

1.0811 FX EUR/USD


Previous
Next Post »