Write a Python function to check if all items in the following tuple are the same


Topic: Write a Python function to check if all items in the following tuple are the same

Solution

def check_tuple_same(sampleTuple):
    return all(i == sampleTuple[0] for i in sampleTuple)



List all Python Programs