I\'m trying to write a python function not using any modules that will take a string that has tabs and replace the tabs with spaces appropriate for an inputted tabstop size.
Here is the easiest way
def replaceTab(text,tabs) return text.replace('\t', ' ' * tabs)