how to check if two tuples are equal python

Solutions on MaxInterview for how to check if two tuples are equal python by the best coders in the world

showing results for - "how to check if two tuples are equal python"
Giuseppe
04 Nov 2020
1tuple1 = (1,2,3)
2tuple2 = (1,2,3)
3print(tuple1 == tuple2) # will return True
4tuple3 = (1,2,3,4,5)
5print(tuple1 == tuple3) # will return False