I am using pyCharm pro on windows.
I tried almost all the methods but no one is working.
I tried these functions too:
def screen_clear():
# for mac and linux(here, os.name is 'posix')
if os.name == 'posix':
_ = os.system('clear')
else:
# for windows platfrom
_ = os.system('cls')
with this py code
i = 10
while i > 0:
print("X"*i)
i -= 1
sleep(1)
screen_clear()
and its giving this output: Code Output