Skip to content

[FEATURE] Currency Script | Implement currency conversion logic in dedicated module #430

Closed
@sue-lim

Description

@sue-lim

Conversion logic is currently embedded and lacks separation of concerns.

Describe the solution you'd like
Create a converter.py module that:

Accepts amount, source, and target currency
Calculates the converted amount using exchange rates

Describe alternatives
Keeping conversion logic inside main.py, but this violates separation of concerns.

Additional context
This will also help isolate the logic for unit testing.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions