diff options
Diffstat (limited to 'progs/a757.py')
-rw-r--r-- | progs/a757.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/progs/a757.py b/progs/a757.py new file mode 100644 index 0000000..0058994 --- /dev/null +++ b/progs/a757.py @@ -0,0 +1,9 @@ +def check_distinct(test_tup):
+ res = True
+ temp = set()
+ for ele in test_tup:
+ if ele in temp:
+ res = False
+ break
+ temp.add(ele)
+ return (res)
\ No newline at end of file |