I am trying to update a line printed to stdout using python and a formatted string. The line is printing, but on each loop through it prints on the same line, next to the previous printed update.
item = ("{}{}{}{}".format(totalAllScraped,
str(" profiles scraped "),
(len(sortedurls)),
str(" filtered profiles saved.")))
print(item, sep='', end='', flush=True)
I want to print the line to stdout, and every iteration of the loop, the previous line is overwritten by the next line.