-
-
Save fatosmorina/99f80f8522faed6c22406421ef1c7d88 to your computer and use it in GitHub Desktop.
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
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