Skip to content

Instantly share code, notes, and snippets.

@fatosmorina
Created October 16, 2021 07:12
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 fatosmorina/99f80f8522faed6c22406421ef1c7d88 to your computer and use it in GitHub Desktop.
Save fatosmorina/99f80f8522faed6c22406421ef1c7d88 to your computer and use it in GitHub Desktop.
july_earnings = 2000
august_earnings = 1000
september_earnings = 3000
third_quarter_earnings = [july_earnings > 4000, august_earnings > 4000, september_earnings > 4000]
def are_conditions_met(conditions):
if any(conditions):
print("You have earned more than 4000 in at least 1 month.")
else:
print("It seems that you have to improve your product or your sales campaign.")
return True
print(are_conditions_met(third_quarter_earnings)) # False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment