I have a python program which has some variables that change over time. I want to print them to the screen, without printing in new line. For example:
for i in range(1,10):
v1 = i
v2 = i+1
v3 = i+2
and while the program is running I want that the display will show:
variable 1 value = v1 #v1 changes over time
variable 2 value = v2 #v2 changes over time
variable 3 value = v3 #v3 changes over time
by overwriting the previous printed values of v1 v2 and v3
can it be done? I know it can be done with one printed line using '/r',
, however this time I want to print more lines...