Project: Currency Converter
About
Want to convert one currency to another? You can go to your bank website and do the math by yourself. Or you can write a program to do it quickly and efficiently! The Currency Converter is a simple console program that calculates the amount of money you get by converting one currency to another.
Learning outcomes
You will learn many concepts of Python — basic types, variables, arithmetic operations, loops, and working with files. Get a taste of more advanced features — JSON format, caching, and how to work with the network. You will write a currency converter program that uses a third-party service.
This project is a part of the following track
Python Developer
What you’ll do and what you’ll learn
Stage 1/6: Cryptocurrencies are the new black
Write a simple program that greets a new type of cryptocurrency.
Stage 2/6: Talking numbers
All of a sudden you have found a stash of crypto tokens. Write a program that calculates the number of dollars received from their sale.
Stage 3/6: More interaction
Read the number of conicoins, exchange rate, and a currency code as the user input. Calculate what you will receive.
Stage 4/6: Going global
Find out how much you get in five other currencies after selling your conicoins.
Stage 5/6: JSON and the Rates
Print the actual exchange rates for USD and EUR using a 3rd party service.
Stage 6/6: Last but not least
Pick two currencies and find their actual exchange rates. Learn how to use cache to store the information about hundreds of currencies.