Question: 
Write a function to find whether all the given tuples have equal length or not.


Model's Code:
def get_equal(tuples, length):
    return 'All tuples have same length' if all(len(t) == length for t in tuples) else 'All tuples do not have same length'



Sample Correct Code:
def find_equal_tuple(Input, k):
  flag = 1
  for tuple in Input:
    if len(tuple) != k:
      flag = 0
      break
  return flag
def get_equal(Input, k):
  if find_equal_tuple(Input, k) == 1:
    return ("All tuples have same length")
  else:
    return ("All tuples do not have same length")


Asserts:
assert get_equal([(11, 22, 33), (44, 55, 66)], 3) == 'All tuples have same length'
assert get_equal([(1, 2, 3), (4, 5, 6, 7)], 3) == 'All tuples do not have same length'
assert get_equal([(1, 2), (3, 4)], 2) == 'All tuples have same length'


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 70 of 974: 55/70 (78.57142857142857%): success