Created
November 26, 2023 21:44
-
-
Save moeltaher/26fb25da0c78f42b1ebce303316a17c5 to your computer and use it in GitHub Desktop.
10EGP to 50EGP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# As requested by Ahmad | |
def convert_egyptian_pounds(amount): | |
print(f"Original amount: {amount} Egyptian pounds") | |
if amount == 10: | |
print("Performing magical financial operation...") | |
amount = 50 | |
else: | |
print("Sorry, this magical operation only works with 10 Egyptian pounds!") | |
print(f"New amount: {amount} Egyptian pounds") | |
return amount | |
# Let's test it | |
money = 10 | |
money = convert_egyptian_pounds(money) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment