-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathfunctions01.py
More file actions
31 lines (24 loc) · 936 Bytes
/
functions01.py
File metadata and controls
31 lines (24 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
""" Mang Toto's ForEx Challenge
Author:
Description: Aling Nena's Sari-sari store just had a new neighbor! It's Mang Toto's ForEx!
Help Mang Toto to convert `USD, JPY, SGD` to `PHP` by:
* Asking the customer for their currency.
>> Welcome to Mang Toto's ForEx! What is your currency? We accept (usd, jpy, sgd):
* If they are not exchanging the currrency, notify the customer.
>> Welcome to Mang Toto's ForEx! What is your currency? We accept (usd, jpy, sgd):
>> aud
>> Sorry! We do not exchange aud!
* If they are in their currency list, ask for the amount and inform the original and equivalent PHP amount.
>> Welcome to Mang Toto's ForEx! What is your currency? We accept (usd, jpy, sgd):
>> usd
>> Your 100.50 usd is equivalent to 5069.22 PHP
"""
PHP_EXCHANGE_RATE = {
'usd': 50.44,
'jpy': 0.45,
'sgd': 36.25
}
def converter(currency, amount):
# Replace pass with your block of code
pass
# Build your code below