Skip to content

Instantly share code, notes, and snippets.

@moeltaher
Created November 26, 2023 21:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save moeltaher/26fb25da0c78f42b1ebce303316a17c5 to your computer and use it in GitHub Desktop.
Save moeltaher/26fb25da0c78f42b1ebce303316a17c5 to your computer and use it in GitHub Desktop.
10EGP to 50EGP
# 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