Given a string, return a new string made of 3 copies of the last 2 chars of the original string. The string length will be at least 2. extra_end ('Hello') → 'lololo' extra_end ('ab') → 'ababab' extra_end ('Hi') → 'HiHiHi'
+5
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Given a string, return a new string made of 3 copies of the last 2 chars of the original string. The string length will be at least 2. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » Given a string, return a new string made of 3 copies of the last 2 chars of the original string. The string length will be at least 2. extra_end ('Hello') → 'lololo' extra_end ('ab') → 'ababab' extra_end ('Hi') → 'HiHiHi'