blob: 7fa3f4f9c93779b0ae9eeccb89252a2331290550 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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")
|