Write a function that accepts two numbers or lists or dictionaries and returns True if the two are equal, and False otherwise
Topic: Write a function that accepts two numbers or lists or dictionaries and returns True if the two are equal, and False otherwise
Solution
def check_assert(item1, item2): try: assert item1 == item2 return True except AssertionError: return False
List all Python Programs