please solve it as Python, use recursion
Posted: Thu Jul 14, 2022 2:17 pm
please solve it as Python, use recursion
Make A Word! Function Name: add() Parameters: list of characters ( list ) Returns: word ( str) Description: Given a list of characters, use recursion to concatinate the characters into a string and return it. If you're given an empty list, return an empty string. ≫>add([′C′, 'a', 'T']) 'CaT' ≫>add([′S′, ' u ', 'm', 'm', 'E', ' r′]) 'SummEr'
Make A Word! Function Name: add() Parameters: list of characters ( list ) Returns: word ( str) Description: Given a list of characters, use recursion to concatinate the characters into a string and return it. If you're given an empty list, return an empty string. ≫>add([′C′, 'a', 'T']) 'CaT' ≫>add([′S′, ' u ', 'm', 'm', 'E', ' r′]) 'SummEr'