From 7628af5bd006f7e44bf3196d83c396726b93fb94 Mon Sep 17 00:00:00 2001 From: Jethro Stapelbroek Date: Sat, 24 Jun 2023 21:15:31 +0200 Subject: [PATCH] No Duplicates --- nodup.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 nodup.py diff --git a/nodup.py b/nodup.py new file mode 100644 index 0000000..9638c0f --- /dev/null +++ b/nodup.py @@ -0,0 +1,3 @@ +words = input().strip().split() +unique_words = set(words) +print("yes" if len(words) == len(unique_words) else "no")