# deblank_tutor.py # Walker M. White (wmw2) # October 13, 2015 """Recursive function to remove spaces This function should be copied into the Python Tutor. That way you can see how recursion affects the call stack.""" # Function Definition def deblank(s): """Returns: s without spaces (all other blanks left alone)""" if s == '': return s if s[0] == ' ': return deblank(s[1:]) return s[0]+deblank(s[1:]) # Function Call x = deblank(' a b c')