Skip to content

Instantly share code, notes, and snippets.

@raeq
Created July 18, 2020 10:54
Show Gist options
  • Save raeq/d6ee99a687641697f7454a1a3700948a to your computer and use it in GitHub Desktop.
Save raeq/d6ee99a687641697f7454a1a3700948a to your computer and use it in GitHub Desktop.
Arte strings equal
def are_equal(first_comparator: str = "", second_comparator: str = "") -> bool:
return first_comparator == second_comparator
assert are_equal("thing one", "thing two") is False
assert are_equal("a thing", "a " + "thing") is True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment