diff options
Diffstat (limited to 'progs/a433.py')
-rw-r--r-- | progs/a433.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/progs/a433.py b/progs/a433.py new file mode 100644 index 0000000..7fa3f4f --- /dev/null +++ b/progs/a433.py @@ -0,0 +1,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")
\ No newline at end of file |