@Ashwini's answer is good, however, it's usually better to make string functions return a new string, and the caller can update variables if they want. So def alphaize(s): return s + 'alpha' and then outside the function empty_string = alphaize('foo').
def alphaize(s): return s + 'alpha'and then outside the functionempty_string = alphaize('foo').