Ask Question
23 March, 22:34

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'

+1
Answers (1)
  1. 23 March, 22:55
    0
    def extra_end (str):

    return 3 * (str[-2:])
Know the Answer?
Not Sure About the Answer?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers