logo CodeStepByStep logo

remove_odd_digits

Language/Type: Python recursion

Write a recursive function named remove_odd_digits that accepts an integer parameter n and that returns the integer formed by removing the odd digits from n. For example, the call of remove_odd_digits(6342118) should return 6428.

Function: Write a Python function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.