Triple Texting

This commit is contained in:
2023-10-17 21:34:52 +02:00
parent f5925dedeb
commit a309dad256

6
tripletexting.py Normal file
View File

@@ -0,0 +1,6 @@
s = input()
wordlen = len(s) // 3
s1 = s[:wordlen]
s2 = s[wordlen : wordlen * 2]
s3 = s[wordlen * 2 :]
print(s1 if s1 == s2 or s1 == s3 else s2)