Skip to content

Commit b07e2f3

Browse files
Create README.md
1 parent 359b5f7 commit b07e2f3

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

currency-converter/README.md

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Project 9: Currency Converter 💱
2+
3+
## Overview
4+
5+
This Python program is a simple currency converter that allows users to convert between different currencies. It fetches real-time exchange rates from an API and performs the conversion based on user input.
6+
7+
## Features
8+
9+
- Fetches real-time exchange rates from a currency API.
10+
- Converts an amount from one currency to another.
11+
- Supports various currencies.
12+
13+
## How to Run 🚀
14+
15+
Clone the repository:
16+
17+
```bash
18+
git clone https://github.com/your-username/currency-converter.git
19+
```
20+
Navigate to the project directory:
21+
22+
```bash
23+
cd currency-converter
24+
```
25+
Install the required library:
26+
27+
```bash
28+
pip install requests
29+
```
30+
Run the Python script:
31+
32+
```bash
33+
python currency_converter.py
34+
```
35+
36+
Follow the prompts to perform currency conversions.
37+
38+
Example
39+
```bash
40+
$ python currency_converter.py
41+
42+
Welcome to Currency Converter!
43+
44+
Enter the amount: 100
45+
Enter the source currency code (e.g., USD): USD
46+
Enter the target currency code (e.g., EUR): EUR
47+
48+
Converting 100 USD to EUR...
49+
50+
Result: 82.32 EUR
51+
```

0 commit comments

Comments
 (0)