use
star_progress = '*'
def progress():
for p in range(4): # you added one extra
print(star_progress, end="\t\t\t", sep="")
# you cant call any function you write without defining it first
print("Progress",end = ' ')
print("Trailing",end = ' ')
print("Retriever",end = ' ')
print("Excluded")
progress()