I'm doing a program, and I want every time the value of the variable changes, it appears on the same line and not that I create new lines with the same content.
Clean the screen and recreate what is in it, this is one of the possible solutions
import os
os.system('cls');