From 824acc8ab0181fc9f81c09a640fc5a34abb7ebe7 Mon Sep 17 00:00:00 2001 From: waldek Date: Fri, 12 Nov 2021 12:40:08 +0100 Subject: [PATCH] adds currency converter --- learning_python3.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/learning_python3.md b/learning_python3.md index 4774c44..1166f7d 100644 --- a/learning_python3.md +++ b/learning_python3.md @@ -458,6 +458,8 @@ That's not a number I understand... ```
Spoiler warning + +```python result = input("How much EUR would you like to convert into DOLLAR? ") rate = 1.14 @@ -468,6 +470,7 @@ if result.isdigit(): print("{} EUR is {} DOLLAR".format(eur, dollar)) else: print("That's not a number I understand...") +```