Triple Texting
This commit is contained in:
6
tripletexting.py
Normal file
6
tripletexting.py
Normal 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)
|
||||
Reference in New Issue
Block a user