Write a program called p3.py that contains a function called reveal_recursive() that takesa word (string) and the length of the word (int) as input and has the following functionality:1. prints the word where all characters are replaced by underscores2. continue to print the word revealing one character at a time. i.e., the second line printed should print the first character followed by “_”’s representing the rest of the word. (see example below)3. the function should end after printing the entire word once.4. This function should be recursive
Example:#the word is kangaroo________k_______ka______kan_____kang____kanga___kangar__kangaro_kangaroo
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here