please solve it as Python, use recursion
Posted: Thu Jul 14, 2022 2:17 pm
please solve it as Python, use recursion
Function Name: findPassword() Parameters: encryption ( str) Returns: correct password ( str ) Description: You have accidentally messed up your phone password with a bunch of random letters and special characters. Given a string of both letters and special characters/numbers, use recursion to concatenate the digits into a single string and return it. Hint: .isdigit() returns whether a character is a number or not. ≫> findPassword (′0$3j$%∧06#s!7!h′)′0367 ’
Function Name: findPassword() Parameters: encryption ( str) Returns: correct password ( str ) Description: You have accidentally messed up your phone password with a bunch of random letters and special characters. Given a string of both letters and special characters/numbers, use recursion to concatenate the digits into a single string and return it. Hint: .isdigit() returns whether a character is a number or not. ≫> findPassword (′0$3j$%∧06#s!7!h′)′0367 ’