summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/test/store-python/currency-converter.py
blob: 61d3ae42acfb1a7c1981cd218828b7c5ed79404f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Currency converter implementation

def convert(fr, to, amount):
    if to == "EUR":
        return amount * 0.70
    return amount

def symbol(currency):
    if currency == "EUR":
        return "E"
    return "$"