let me describe exactly what I'm asking. suppose that python console looks like this:
line1
line2
line3
line4
line5
...
now suppose you have a loop that prints into 3 lines with every iteration. so usually it would print into line1, line2 and line3 in the first iteration, then 4,5,6 in second and so on. I want to make it print ONLY into line1, 2 and 3, while deleting what was previously in those lines.
reason for this is I have a lot to print and what was printed before doesn't matter anymore, so this way I wouldn't create a huge number of lines.
EDIT: I think it's not a duplicate question since there are more lines in question here. I think clearing the entire console is the simplest solution here. Thanks for your answers!