Hey, I'm trying to figure out how to get this kind of program to work, it's supposed to be a UNIX style program in the sense that everything is command line driven. What I'm trying to get it to do is when the function is called it takes the input file and converts all tabs into 4 spaces. Here's the form of the input and what I have of my tab_to_space function so far.
"python3 assignment3.py +t < assignment3.py > output.txt"
Where +t denotes the function that is being called
Here is my function so far.
def tab_to_space():
""" This function changes tabs in the indenting to spaces
"""
print("Tabbing spaces")
for TAB_CHAR in input():
string = input()
string.replace(" ", " ")
return string