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.
I use .replace function that is very simple:
line = line.replace('\t', ' ')