0% found this document useful (0 votes)
268 views

Python Currency Converter

This document summarizes a Python project to create a currency converter. A group of 3 students created a currency converter program under the guidance of Akshara Rana from October to November 2022. The program uses the forex-python library to provide real-time exchange rates and allows users to enter an amount and currencies to convert between. The project declaration and acknowledgements are also included.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
268 views

Python Currency Converter

This document summarizes a Python project to create a currency converter. A group of 3 students created a currency converter program under the guidance of Akshara Rana from October to November 2022. The program uses the forex-python library to provide real-time exchange rates and allows users to enter an amount and currencies to convert between. The project declaration and acknowledgements are also included.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

REPORT

On

Python script for Currency Converter

Submitted by

Name Registration no

Nikhil Kumar Agarwal K 12215039

Raj Gupta 12215327

Cheekatla Sreeram 12215613

Program Name: Bachelor of Technology


(Computer Science and Engineering)

Under the Guidance of

Akshara Rana

School of Computer Science & Engineering


Lovely Professional University
(October-November 2022)
DECLARATION

I hereby declare that I have completed my Python Mini project on Currency


Conveter from a given sentence from 03-10-2022 to 24-11-2022 under the
guidance of Akshara Rana. I have declared that I have worked with full
dedication during these six weeks to fulfil the requirements of training for the
award of degree of Bachelor of Technology (Computer Science and
Engineering), Lovely Professional University, Phagwara

Date: 24-11-2022 Signature


Registration No: 12215039
Registration No: 12215327
Registration No: 12215613
ACKNOWLEDGEMENT

Primarily I would like to thank God for being able to learn a new technology.
Then I would like to express my special thanks of gratitude to the teacher who
provide me the golden opportunity to learn a new technology from home.

I would like to also thank my own college Lovely Professional University for
offering such a course which not only improve my programming skill but also
taught me other new technology.

Then, I would like to thank my parents and friends who have helped me with
their valuable suggestions and guidance for choosing this course.

I am making this project not only for marks but to also increase my knowledge.
THANKS AGAIN TO ALL
How to make a Currency Converter:
To convert one currency to another, we need to write a program to
accept user input where the user will enter the amount of money, and
then the user must choose the type of currency the user wants to check
the value of.
Then our program should just display the result by calculating the
converted amount as the output. A good currency converter
application should show the converted amount in real-time, which
will only be possible if our program is working on real-time
conversion rates.

To use real-time exchange rates, we can use the forex-python library


which is used as a free tool in Python to work with exchange rates and
currency conversion.

Features of forex-python library:


Some of the important features provided by this library are:

1. List all exchange rates


2. Bitcoin price for all currencies
3. Converting the amount into Bitcoins
4. Get historical rates for any day since 1999
5. The conversion rate for a currency (ex; USD to INR)
6. Convert the amount from one currency to another. (‘USD $ 10’
to INR)
7. Currency symbols
8. Names of currencies
It uses rates API which is a free API to work with real-time and
historical exchange rates published by the European Central Bank

How to build a currency converter:

To create a Realtime currency converter with Python., we first need


to install the forex-python library which can be easily installed by
using the pip command; pip install forex-python.
Now let’s see how to write a program to create a real-time currency
converter with Python:

Source Code:

from forex_python.converter import CurrencyRates

cr = CurrencyRates()

amount = int(input("Please enter the amount you want to convert: "))

from_currency = input("Please enter the currency code that has to be


converted: ").upper()

to_currency = input("Please enter the currency code to convert:


").upper()

print("You are converting", amount, from_currency, "to",


to_currency,".")

output = cr.convert(from_currency, to_currency, amount)

print("The converted rate is:", output)

Output:

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy