Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update currency.py #317

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BrahmajitMohapatra
Copy link
Contributor

Explanation of Key Sections:
• Class Definition (Currency_convertor): The class is used to store conversion rates and perform the currency conversion.
• API Request (requests.get()): The program uses the requests library to fetch currency data from the fixer.io API.
• Conversion Logic (convert function): This function performs the currency conversion using the rates fetched and prints the result in a human-readable format.
• Driver Code (if name == "main"): This section handles user input and calls the conversion function to provide output.

Note:
• You need to replace 'GET_YOUR_ACCESS_KEY_FROM_fixer.io' with your actual API key from fixer.io.

Explanation of Key Sections:
•	Class Definition (Currency_convertor): The class is used to store conversion rates and perform the currency conversion.
•	API Request (requests.get()): The program uses the requests library to fetch currency data from the fixer.io API.
•	Conversion Logic (convert function): This function performs the currency conversion using the rates fetched and prints the result in a human-readable format.
•	Driver Code (if __name__ == "__main__"): This section handles user input and calls the conversion function to provide output.

Note:
•	You need to replace 'GET_YOUR_ACCESS_KEY_FROM_fixer.io' with your actual API key from fixer.io.
Copy link
Collaborator

@hasan-py hasan-py left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have already submitted changes to the script. Now, what is this about?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants