Skip to content

Countries for currencies #6

@jusce17

Description

@jusce17

Would be nice if you could just write the country and get the currency, like


>>> portugal = Country('PORTUGAL')
>>> portugal.get_currency()
>>> EUR
>>> portugal.get_money_format(13)
>>> '€13'
>>> portugal.get_money_format(13.99)
>>> '€13.99'
>>> portugal.get_money_format('13,2313,33')
>>> '€13,2313,33'
>>>
>>> # Displaying with currency as well
>>>
>>> portugal.get_money_with_currency_format(13)
>>> '€13 EUR'
>>> portugal.get_money_with_currency_format(13.99)
>>> '€13.99 EUR'
>>> portugal.get_money_with_currency_format('13,2313,33')
>>> '€13,2313,33 EUR'

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions