# front_22 Given a string, take the first 2 chars and return the string with the 2 chars added at both the front and back, so "kitten" yields"kikittenki". If the string length is less than 2, use whatever chars are there. This exercise was taken from [codingbat.com](https://codingbat.com/prob/p183592) and has been adapted for the Python language. There are many great programming exercises there, but the majority are created for Java. ### Test 1 **Input:** ``` 'kitten' ``` **Output:** ``` 'kikittenki' ``` ### Test 2 **Input:** ``` 'Ha' ``` **Output:** ``` 'HaHaHa' ``` ### Test 3 **Input:** ``` 'abc' ``` **Output:** ``` 'ababcab' ``` ### Test 4 **Input:** ``` 'ab' ``` **Output:** ``` 'ababab' ``` ### Test 5 **Input:** ``` 'a' ``` **Output:** ``` 'aaa' ``` ### Test 6 **Input:** ``` '' ``` **Output:** ``` '' ``` ### Test 7 **Input:** ``` 'Logic' ``` **Output:** ``` 'LoLogicLo' ```