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

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
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