Ask Question
4 November, 06:29

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)
  1. 4 November, 09:55
    0
    def extra_end (str):

    return 3 * (str[-2:])
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.
Search for Other Answers