Skip to content

Instantly share code, notes, and snippets.

@codetombomb
Created September 24, 2020 16:35
Show Gist options
  • Save codetombomb/ecdad6ea8b783febb6430652138fb788 to your computer and use it in GitHub Desktop.
Save codetombomb/ecdad6ea8b783febb6430652138fb788 to your computer and use it in GitHub Desktop.
Conditionals 1
def main(a, b):
if a > b:
print("A is greater than b.")
elif a == b:
print("A is equal to b")
else:
print("A is less than b")
if __name__ == "__main__":
main(5, 10)
main(10, 10)
main(15, 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment