check if two tuples are equal python code example
Example: how to check if two tuples are equal python
tuple1 = (1,2,3)
tuple2 = (1,2,3)
print(tuple1 == tuple2) # will return True
tuple3 = (1,2,3,4,5)
print(tuple1 == tuple3) # will return False
tuple1 = (1,2,3)
tuple2 = (1,2,3)
print(tuple1 == tuple2) # will return True
tuple3 = (1,2,3,4,5)
print(tuple1 == tuple3) # will return False